一,报错信息:
[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
说明:作者:刘宏缔 邮箱: [email protected]
三,查看vue框架的版本:
root@lhdpc:/data/vue/responsive# npm list vue
[email protected] /data/vue/responsive
├─┬ @vue/[email protected]
│ └─┬ @vue/[email protected]
│ ├─┬ @vue/[email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
└─┬ [email protected]
└─┬ @vue/[email protected]
└── [email protected] deduped
标签:vue,run,permission,liuhongdi,com,3.3,responsive,data
From: https://www.cnblogs.com/architectforest/p/17714630.html