c# - NPM 脚本“启动”退出,但未指示 create-react-app 服务器正在侦听请求
问题描述
我遇到了这个问题:
NPM 脚本“启动”退出,但未指示 create-react-app 服务器正在侦听请求。错误输出为:“rimraf”未被识别为内部或外部命令,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! CallerPanelProject@0.1.0 start: `rimraf ./build && react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the CallerPanelProject@0.1.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:
))
TSystem.Threading.Tasks.Task<TResult>.GetResultCore(bool waitCompletionNotification)
解决方案
您可能错过了在源项目中安装依赖项。这就是为什么它无法在没有引用的情况下开始运行您的应用程序。
在您的源项目中运行npm install
将解决问题
推荐阅读
- php - 如何缓存 IMAP 套接字资源?
- macos - 无法在 Mac 上打开 PyCharm IDE -StartupAbortedException
- android - Android Activity Recognition 真的很糟糕
- function - 装配 X86,分割时出现分段错误
- visual-studio - 尝试为 MinGW-w64 的 VS Code 安装 C/C++ 扩展时遇到问题
- rabbitmq - ZeroMQ 或 RabbitMQ 用于边缘应用程序?
- javascript - 如何在js中window.open的url中使用var
- react-native - 如何在 React 导航屏幕之间共享状态?
- arrays - 在 C 中的 2 个列表中对元素进行分组
- visual-studio-code - 我可以将 VS Code Ubuntu 终端与 RedHat 的 YAML 语言支持结合使用吗