flutter doctor 执行报错

报错内容

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

解决

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容