【问题标题】:ionic serve not working properly How can I fix the error?ionic serve 无法正常工作 我该如何解决这个错误?
【发布时间】:2019-10-09 15:45:10
【问题描述】:

我是 mac 用户,我在 bash_profile 上设置 JDK 环境变量,关注各种博客和文章,我犯了一个大错误,请帮助我修复它。

> Dhirajs-MacBook-Air:spiritualGuru thedkn$ ionic -v Error: EACCES:
> permission denied, mkdir 
> '/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/.ionic'
> 
>     at Object.mkdirSync (fs.js:757:3)
>     at Object.mkdirpSync  (/Users/thedkn/node_modules/@ionic/utils-fs/dist/index.js:125:16)
>     at Config.set c [as c]  (/Users/thedkn/node_modules/@ionic/cli-framework/lib/config.js:37:20)
>     at Config.set (/Users/thedkn/node_modules/@ionic/cli-framework/lib/config.js:50:16)
>     at Object.<anonymous> (/Users/thedkn/node_modules/ionic/dist/index.js:72:29)
>     at Generator.next (<anonymous>)
>     at fulfilled (/Users/thedkn/node_modules/tslib/tslib.js:104:62) Dhirajs-MacBook-Air:spiritualGuru thedkn$

【问题讨论】:

    标签: ionic-framework terminal ionic-cli


    【解决方案1】:

    我在 MAC 电脑上遇到了同样的错误。我将文件系统身份验证仅 read 更改为 write readedit 身份验证。您也可以尝试在 ionic serve 前面添加 sudo命令。

    【讨论】:

    • 如何更改身份验证状态?
    • 右键文件夹并选择提供信息,您可以在右下角看到锁定图标,单击此并更改。
    猜你喜欢
    • 2019-03-14
    • 1970-01-01
    • 2017-01-27
    • 1970-01-01
    • 1970-01-01
    • 2017-07-15
    • 1970-01-01
    • 2020-02-22
    • 1970-01-01
    相关资源
    最近更新 更多