本地package.json存在,但缺少node_modules

Dee*_*ale 34 javascript npm reactjs redux react-redux

我正在尝试启动我刚刚从GitHub存储库克隆的redux应用程序.

我尝试使用以下命令运行它

npm start
Run Code Online (Sandbox Code Playgroud)

我收到了这个错误

> react-redux@1.0.0 start /home/workspace/assignment
> webpack-dev-server --config ./configs/webpack/webpack.config.development.js

sh: 1: webpack-dev-server: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! react-redux@1.0.0 start: `webpack-dev-server --config ./configs/webpack/webpack.config.development.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the react-redux@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!     /home/.npm/_logs/2018-05-15T16_32_44_571Z-debug.log
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激

Dan*_*Dan 60

npm start运行应用程序制造商为轻松启动应用程序而构建的脚本 npm install将安装package.json中的所有软件包

npm install第一

然后运行 npm start