Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The NPM script 'start' exited without indicating that the create-react-app server was listening for requests

Tags:

c#

node.js

npm

I faced with this problem:

enter image description here

The NPM script 'start' exited without indicating that the create-react-app server was listening for requests. The error output was: 'rimraf' is not recognized as an internal or external command,

operable program or batch file.
npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] start: `rimraf ./build && react-scripts start`
npm ERR! Exit status 1
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 ERR! A complete log of this run can be found in:

))
TSystem.Threading.Tasks.Task<TResult>.GetResultCore(bool waitCompletionNotification)
like image 348
GozdeErdogan Avatar asked Nov 15 '19 19:11

GozdeErdogan


People also ask

Why does the NPM script 'start' exit without indicating anything?

The NPM script 'start' exited without indicating that the create-react-app server was listening for requests. The error output was: 'rimraf' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR!

Why does the NPM script'start'exit without indicating angular CLI?

The NPM script 'start' exited without indicating that the Angular CLI was listening for requests - Coding Infinite (One or more errors occurred. (The NPM script 'start' exited without indicating that the Angular CLI was listening for requests.

What is aggregateexception in NPM?

AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script ‘start’ exited without indicating that the create-react-app server was listening for requests. The error output was: )) System.Threading.Tasks.Task.ThrowIfExceptional (bool includeTaskCanceledExceptions)

What is unhandled exception in NPM?

An unhandled exception occurred while processing the request. AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script ‘start’ exited without indicating that the create-react-app server was listening for requests.


2 Answers

A similar error as @JamesPoulose but I had installed npm. The problem was I installed it when Visual Studio was open. Event Viewer therefore showed me this error:

Category: Microsoft.AspNetCore.SpaServices

EventId: 0

'npm' is not recognized as an internal or external command,

enter image description here

A simple restart of Visual Studio fixed it.

like image 82
Ogglas Avatar answered Oct 19 '22 23:10

Ogglas


You might have missed installing the dependencies in your source project. That is why it is unable to start to run your application without references.

Run npm install in your source project would resolve the issue

like image 33
sarath chandra Avatar answered Oct 19 '22 22:10

sarath chandra