0

according to Reactjs docs :

Youโ€™ll need to have Node >= 8.10 and npm >= 5.6 on your machine. To create a project, run:

npx create-react-app my-app

which my env meet it:

AymanMorsy@DESKTOP-6V4567D MINGW64 /g/reactprojects
$ node --version && npm --version ๐Ÿ‘ˆ๐Ÿ‘ˆ
v12.16.0 ๐Ÿ‘ˆ๐Ÿ‘ˆ
6.13.4 ๐Ÿ‘ˆ๐Ÿ‘ˆ

AymanMorsy@DESKTOP-6V4567D MINGW64 /g/reactprojects
$ npx create-react-app my-app
npx: installed 99 in 17.908s

Creating a new React app in G:\reactprojects\my-app.

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

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz
npm ERR! 404
npm ERR! 404  'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AymanMorsy\AppData\Roaming\npm-cache\_logs\2020-02-12T21_29_30_123Z-debug.log

Aborting installation. ๐Ÿšจ๐Ÿšจ๐Ÿšจ
  npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json
Deleting my-app/ from G:\reactprojects
Done.

I tried solutions on Create React App not installing, showing an error and aborting installation

finally I formated C and installed latest update of windows10 and still see the same problem

edite: output of npm config list

$ npm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.13.4 node/v12.16.0 win32 x64"

; builtin config undefined
prefix = "C:\\Users\\AymanMorsy\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = G:\reactprojects
; HOME = C:\Users\AymanMorsy
; "npm config ls -l" to show all defaults.
5
  • What does npm config list output? Commented Feb 12, 2020 at 21:48
  • @evolutionxbox I added it in question now. Commented Feb 12, 2020 at 21:52
  • 1
    This might be an issue directly with npm status.npmjs.org Commented Feb 12, 2020 at 21:53
  • I see 404 Errors with Certain Packages when visiting this link :( Commented Feb 12, 2020 at 21:59
  • Indeed. This is why I posted it. Commented Feb 12, 2020 at 22:00

4 Answers 4

1

Looks like https://registry.npmjs.org/error-ex is down for some regions

It will be soon up

Sign up to request clarification or add additional context in comments.

Comments

0

solution for this following โคต Install Scoop and then install yarn and then do yarn create-react-app myapp100% work definitely

Comments

0

In my case, antivirus was stopping some of the modules from being accesses. Turned it off, also installed yarn. Works fine

  1. Stop Antivirus momentarily.

  2. npm install -g yarn

  3. yarn global add create-react-app

  4. npx create-react-app my-app

  5. Start Antivirus

Although I feel that yarn is not mandatory to solve this issue in my case - I prefer yarn. Hoping this helps someone out there.

Comments

0

I encountered the same issue. I am using windows 11 and I solved the problem by DISABLING ANTIVIRUS - windows defender and the installation was successful. Try disabling your antivirus, run the installation, then enable your antivirus later. Hope it helps

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.