sh: vue-cli-service: command not found

mac环境运行Vue项目报错信息

mac@gjr 25_scr_tese % npm run serve

> [email protected] serve
> vue-cli-service serve

sh: vue-cli-service: command not found

解决方法

1.cd到项目目录
2.执行命令sudo rm -rf node_modules package-lock.json && npm install
3.输入密码,安装完成就可以正常运行了

你可能感兴趣的:(sh: vue-cli-service: command not found)