vue:run时报错:EACCES: permission denied(vue@3.3.4)
一,报错信息:
[eslint] EACCES: permission denied, open '/data/vue/responsive/node_modules/.cache/eslint/43541cdc.json’
如图:
二,解决
切换拒绝访问的文件的owner
liuhongdi@lhdpc:/data/vue/responsive$ sudo chown liuhongdi.liuhongdi -R /data/vue/responsive/node_modules/.cache/eslint/
[sudo] liuhongdi 的密码:
再次执行:
liuhongdi@lhdpc:/data/vue/responsive$ npm run serve
如图:可见已可以正常运行:
说明:刘宏缔的架构森林—专注it技术的博客,
网站:https://blog.imgtouch.com
原文: https://blog.imgtouch.com/index.php/2023/09/18/vue-run-shi-bao-cuo-eacces-permission-denied-vue-3-3-4/
代码: https://github.com/liuhongdi/ 或 https://gitee.com/liuhongdi
说明:作者:刘宏缔 邮箱: 371125307@qq.com
三,查看vue框架的版本:
root@lhdpc:/data/vue/responsive# npm list vue
responsive@0.1.0 /data/vue/responsive
├─┬ @vue/cli-plugin-babel@5.0.8
│ └─┬ @vue/babel-preset-app@5.0.8
│ ├─┬ @vue/babel-preset-jsx@1.4.0
│ │ └── vue@3.3.4 deduped
│ └── vue@3.3.4 deduped
└─┬ vue@3.3.4
└─┬ @vue/server-renderer@3.3.4
└── vue@3.3.4 deduped