Create-react-app: Help me, please!

Created on 3 Aug 2020  路  3Comments  路  Source: facebook/create-react-app

Hi There!

I am new to React and I'm having great difficulty trying to create a react application with the create-react-app. When I use the command line npx create-react-app OI get the following message in the terminal (I use VS Code):

npx create-react-app myApp
npm ERR! code E404
npm ERR! 404 Not Found - GET https://github.com/npm/npm-registry-couchapp/create-react-app - Not Found
npm ERR! 404
npm ERR! 404  'create-react-app@latest' 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
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\xxxx
[2020-08-03T13_46_01_919Z-debug.log](https://github.com/facebook/create-react-app/files/5016322/2020-08-03T13_46_01_919Z-debug.log)
\AppData\Roaming\npm-cache\_logs\2020-08-03T13_46_01_919Z-debug.log
Install for [ 'create-react-app@latest' ] failed with code 1

I have been searching for hours how to get this working and have had no luck at all.

I have also attached a error log that was generated.

Any help would be absolutely fantastic!

Thank you,
Daniel Priest

Most helpful comment

Try opening your npm config file (npmrc) from either:
C:\Program Filesnodejsnode_modulesnpmnpmmrc
or
C:\Users\Jack\AppData\Roamingnpm\
then enter registry=https://registry.npmjs.com/ in the file and save it. After that you may need to reopen your prompt / terminal and try creating your project again.

All 3 comments

Check your .npmrc file.
For some reason, you are using https://github.com/npm/npm-registry-couchapp instead of the main npm registry

Try opening your npm config file (npmrc) from either:
C:\Program Filesnodejsnode_modulesnpmnpmmrc
or
C:\Users\Jack\AppData\Roamingnpm\
then enter registry=https://registry.npmjs.com/ in the file and save it. After that you may need to reopen your prompt / terminal and try creating your project again.

Thank you Karl, iddan. Fixed with running npm config set registry https://registry.npmjs.com/ in a command prompt. Many thanks for your help :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alleroux picture alleroux  路  3Comments

barcher picture barcher  路  3Comments

fson picture fson  路  3Comments

fson picture fson  路  3Comments

Evan-GK picture Evan-GK  路  3Comments