'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vuedemo3@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vuedemo3@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-10-20T10_23_54_162Z-debug.log
先检查是否有node_modules 文件 如果没有直接执行(2)
(1) 检查本地电脑的 node版本是否与搭建的项目时一样,
---------------------
(2)后来百度方法解决方案为:npm cache clean --force即可,再重新npm install ,npm run build ,npm run dev时就可以了