npm error/bug while creating react app

triaged
cli

(SURYA P SINGH) #1

What I Wanted to Do

I was trying to create react app using create-react-app

What Happened Instead

I installed Nodejs, react and i was trying to create react app using create-react-app

got below Error
C:\PCL\React> create-react-app test
2019-01-11T00_37_38_257Z-debug.log (346.2 KB)

Creating a new React app in C:\PCL\React\test.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts…

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\pc11300\AppData\Roaming\npm-cache_logs\2019-01-11T00_37_3
8_257Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts
has failed.

Deleting generated file… package.json
Deleting test/ from C:\PCL\React
Done.

Reproduction Steps

used below command
create-react-app test

here is the log file
Please see attachment

Details

Platform Info

$ npm --versions
<!-- 6.4.1 -->
 node version v10.15.0
$ node -p process.platform
<!-- win32 -->

(Imonisa Oghenekevwe Brian) #2

I actually would have given solution to your complain but sorry to say i have similar issue to that is why i came here. However, my situation is that because i wanted to create-react-app <…name> but i could instead kept getting this error "
Creating a new React app in C:\Users\BrianMartinez\brian-todos.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts…

npm ERR! Unexpected end of JSON input while parsing near ‘…tXcMskoaoOolrubJ3NQGh’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\BrianMartinez\AppData\Roaming\npm-cache_logs\2019-01-12T14_46_01_049Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file… package.json
Deleting brian-todos/ from C:\Users\BrianMartinez
Done.
"

i had before now created an app before and i could still use npm start to run my dev server but i am amazed at this development.


(Kat Marchán) #3

Duplicate of [crash] npm ERR! cb() never called!


(Kat Marchán) #4