vue项目运行 npm run serve 报错
sh: /Users/wang/WebstormProjects/test_web/node_modules/.bin/vue-cli-service: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! huischoll@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the huischoll@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
设置权限,再运行就好了
chmod 777 项目文件夹/node_modules/.bin/vue-cli-service
本文介绍了一个常见的Vue项目中遇到的问题:使用npm run serve命令时出现权限被拒绝的错误。通过调整项目文件夹中node_modules/.bin/vue-cli-service的权限设置,可以有效地解决这一问题。
3269

被折叠的 条评论
为什么被折叠?



