npm install報如下錯誤:
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bhwechat@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 bhwechat@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\Kelly\AppData\Roaming\npm-cache\_logs\2019-03-24T08_17_24_284Z-debug.log
解決方案1(實踐成功):
1、刪除node_modules包
2、清除緩存:npm cache clean --force
3、重新安裝:npm install
解決方法2(未實踐):
1)刪除原有的node_modules文件夾,即C:\Users\zhang\AppData\Roaming\npm\node_modules
2)重新執行安裝命令:npm install -g @angular/cli@6.1.5 -save-dev