美文网首页
flutter doctor 执行报错

flutter doctor 执行报错

作者: 小柴2011 | 来源:发表于2020-11-13 10:05 被阅读0次

    报错内容

    Exception: Flutter failed to create a directory at "/Users/chaiguangpu/.config/flutter". The flutter tool cannot access the file or directory.

    Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.

    判断是文件权限问题

    解决过程:

    ls -la

    chmod 777 .config(该名令执行结果:chmod: Unable to change file mode on .config: Operation not permitted)

    sudo chmod 777 .config

    再次执行

    flutter doctor

    解决

    相关文章

      网友评论

          本文标题:flutter doctor 执行报错

          本文链接:https://www.haomeiwen.com/subject/ktkvbktx.html