vue npm运行报错

使用npm命令 npm run dev 运行项目时,抛出警告,警告如下

npm ERR! missing script: dev

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\chang\AppData\Roaming\npm-cache\_logs\2020-05-03T08_55
30_155Z-debug.log

原因是 npm run devnpm start为老项目运行方式,而我的环境为

解决办法为,使用命令npm run serve

猜你喜欢

转载自www.cnblogs.com/qzdd/p/12823508.html