为了账号安全,请及时绑定邮箱和手机立即绑定

请问为什么我输入npm run dev会报错?

'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序

或批处理文件。

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! todolist@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 todolist@1.0.0 dev script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm WARN Local package.json exists, but node_modules missing, did you mean to install?


npm ERR! A complete log of this run can be found in:

npm ERR!     D:\nodejs\node_cache\_logs\2019-10-24T08_04_37_301Z-debug.log


2019-10-24 源自:vue2.5入门 4-1 416 浏览 1 回答

已解决

2019-10-24
0

慕婉清0322415

怎么解决的?
#1 2020-04-01

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信