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

19 浏览
0 Comments

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

我正在尝试启动一个我刚从GitHub仓库克隆下来的Redux应用程序。我尝试使用以下命令运行它:npm start,但是我收到了以下错误提示:

> [email protected] 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! [email protected] start: `webpack-dev-server --config ./configs/webpack/webpack.config.development.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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

。任何帮助将不胜感激。

0