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

npm start 报错

> angular2-demo@1.0.0 start C:\Users\admin\Desktop\angular\angular2-demo-master

> webpack-dev-server --inline --colors --progress --port 3000


'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! angular2-demo@1.0.0 start: `webpack-dev-server --inline --colors --progress --port 3000`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the angular2-demo@1.0.0 start 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!     C:\Users\admin\AppData\Roaming\npm-cache\_logs\2019-04-27T16_55_14_060Z-debug.log


正在回答

1 回答

npm install webpack-dev-server试试

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Angular2一小时快速入门
  • 参与学习       56850    人
  • 解答问题       79    个

Angular2一小时快速入门教程,帮助大家快速上手Angular2开发

进入课程

npm start 报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信