Mac电脑在vscode中跑windows的项目出现问题
MacBook-Pro % npm run dev
vue-admin-template@4.4.0 dev
vue-cli-service serve --host 0.0.0.0
sh: /Users/***/Documents/uaisDJ/node_modules/.bin/vue-cli-service: Permission denied
解决方案:找到项目的根目录,打开终端,输入权限命令
MacBook-Pro % chmod 777 node_modules/.bin/vue-cli-service
chmod 777 node_modules/.bin/vue-cli-service
随后重新执行npm run serve即可。
原创:https://blog.csdn.net/qq_41182402/article/details/113338184