【发布时间】:2017-09-19 10:59:05
【问题描述】:
learnreact@1.0.0 start C:\Users\Vaibhav\Desktop\reactApp
webpack-dev-server
'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! learnreact@1.0.0 start: `webpack-dev-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the learnreact@1.0.0 start script 'webpack-dev-server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the learnreact package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs learnreact
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls learnreact
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Vaibhav\AppData\Roaming\npm-cache\_logs\2017-04-22T13_06_29_371Z-debug.log
【问题讨论】:
-
你用
npm install webpack-dev-server --save-dev安装了开发服务器吗? -
是的,我已经按照这里提到的步骤-tutorialspoint.com/reactjs/reactjs_environment_setup.htm
标签: reactjs npm webpack webpack-dev-server webpack-2