首页 > 解决方案 > 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)

标签: c#node.jsnpm

解决方案


您可能错过了在源项目中安装依赖项。这就是为什么它无法在没有引用的情况下开始运行您的应用程序。

在您的源项目中运行npm install将解决问题


推荐阅读