首页 > 解决方案 > 如何在启动 npm 时解决这个问题?

问题描述

我遇到了这个问题,请帮助我学习 React JS,而且我第一次问了关于 stackoverflow 的问题,如果违反了任何提问协议,请原谅我。

'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! reactapp@1.0.0 start: `webpack-dev-server --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactapp@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\-\AppData\Roaming\npm-cache\_logs\2019-07-24T09_22_22_523Z-debug.log

我尝试安装 npm install--save-dev babel-plugin-styled-components来解决我在 YT 视频上看到的问题,但什么也没发生。请帮我解决这个问题谢谢。

标签: node.jsreactjsnpmnpm-installnpm-start

解决方案


推荐阅读