运行命令(项目所在路径):npm run dev 会报错
出现这个原因是项目里的package.json 文件的问题,找到这一行
可以看到这里是serve,一种解决办法是把运行命令改为npm run serve,
另一种是把"serve": “vue-cli-service serve”,改成"dev": “vue-cli-service serve”,再运行npm run dev 即可解决
相关文章
- vue项目npm run build报错npm ERR! missing script: build(已解决)
- (在本地运行项目)npm报错:npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2017-11-20T09_43_06_459Z-debug.log
- (在本地运行项目)npm报错:npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2017-11-20T09_43_06_459Z-debug.log