node.js - 如何在启动 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 视频上看到的问题,但什么也没发生。请帮我解决这个问题谢谢。
解决方案
推荐阅读
- markdown - 自定义降价增强预览
- r-exams - R/exams 似乎没有返回正确的考试解决方案
- google-chrome - SERVICE WORKER:Service Worker 导航预加载请求因网络错误而失败:Chrome 89 中的 net::ERR_INTERNET_DISCONNECTED
- r - 根据其他三个列中的条件创建新列
- python - 将 html 代码从 python 放入 html 文件
- python - 使用 bat 文件打开 Streamlit 会导致 File Not Fund 错误
- paper-trail-gem - 纸迹协会
- macos - 如何获取 .command 文件的当前目录路径 - macOS
- kivy - 重新加载由 Kivy 中的相机小部件存储的图像
- node.js - 是否可以在 NodeJs 中同时使用工作线程 + GPU.js?