错误如下:
C:\Users\Administrator\Desktop\Vuetest>npm run dev
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! missing script: dev
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Administrator\Desktop\Vuetest\npm-debug.log
之前一直很正常,最近不知道为什么出现毛病了,所支持的组件都装了
npm ERR! missing script: dev
你看看是不是 package.json 里面没有 "scripts": {"dev": "xxx"} 这段了
对,粗心大意了,忘了这个,谢谢!
"scripts": {
"dev": "webpack-dev-server --inline --hot --open --port 5008"
},