一、使用npm run dev 报错时 npm ERR! Missing script: “dev”
PS E:\big-screen-vue-datav-master> npm run dev
npm ERR! Missing script: "dev"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yudengsheng\AppData\Local\npm-cache\_logs\2022-08-08T13_38_17_020Z-debug.log
PS E:\big-screen-vue-datav-master> vue init webpack
解决办法:
查看package.json下的scripts里是否有dev
如果是如下图所示就需要:使用npm run serve 来启动项目;
启动结果: