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

来源:4-1 vue-cli的简介与使用

也曾是满天花火

2019-10-24 16:13

'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


写回答 关注

1回答

  • 也曾是满天花火
    2019-10-24 16:36:49

    已解决

    慕婉清032...

    怎么解决的?

    2020-04-01 23:37:05

    共 1 条回复 >

vue2.5入门

快速理解Vue编程理念上手Vue2.0开发。

146024 学习 · 655 问题

查看课程

相似问题