怎么安装cnpm install better-scroll --save后运行npm run start有问题的
来源:8-4 Vue项目城市选择页 - BetterScroll 的使用和字母表布局
qq_蓝骏毅_04076633
2020-11-17
‘webpack-dev-server’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! travel@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 travel@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! D:\Program Files\nodejs\node_cache_logs\2020-11-17T12_12_39_887Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! travel@1.0.0 start: npm run dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the travel@1.0.0 start 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! D:\Program Files\nodejs\node_cache_logs\2020-11-17T12_12_40_234Z-debug.log
1回答
-
Dell
2020-11-18
你把node_modules全部删了,再重新运行 cnpm install 这个命令,之后再跑项目
00
相似问题