create-react-app: Error:

`┌─[sambhrama@parrot]─[~] └──╼ $npx create-react-app basaveshwar_hardwares npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EHOSTUNREACH: request to https://registry.npmjs.org/create-react-app failed, reason: connect EHOSTUNREACH 104.16.26.35:443 npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.

Creating a new React app in /home/sambhrama/basaveshwar_hardwares.

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

^A[ …] | idealTree:type-fest: sill fetch manifest type-fest@^0.6[ …] / idealTree:snapdragon-util: sill npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! errno ERR_SOCKET_TIMEOUT npm ERR! request to https://registry.npmjs.org/coa/-/coa-2.0.2.tgz failed, reason: Socket timeout

npm ERR! A complete log of this run can be found in: npm ERR! /home/sambhrama/.npm/_logs/2020-12-16T07_20_06_826Z-debug.log

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

Deleting generated file… node_modules Deleting generated file… package.json Deleting basaveshwar_hardwares/ from /home/sambhrama Done. npm ERR! code 1 npm ERR! path /home/sambhrama npm ERR! command failed npm ERR! command sh -c create-react-app basaveshwar_hardwares

npm ERR! A complete log of this run can be found in: npm ERR! /home/sambhrama/.npm/_logs/2020-12-16T07_20_12_208Z-debug.log ┌─[✗]─[sambhrama@parrot]─[~] └──╼ $ `

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 16

Most upvoted comments

I have similar problem

create-react-app jsx

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

npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! request to https://registry.npmjs.org/babel-preset-react-app failed, reason: Socket timeout

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mka/.npm/_logs/2020-12-23T00_02_40_003Z-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 jsx/ from /home/mka/Desktop/Modern_react_kurs
Done.

with:

  • npm 7.3.0
  • node v15.5.0

EDITED:

Today i added timeout=60000 to .npmrc file and after run: create-react-app jsx all work just fine

got it! thank you 😊

On Thu, 27 Jan 2022, 13:09 mka142, @.***> wrote:

Propably in your username directory, but you can also create this file manually e.g. in your project directory .npmrc https://docs.npmjs.com/cli/v6/configuring-npm/npmrc

— Reply to this email directly, view it on GitHub https://github.com/facebook/create-react-app/issues/10251#issuecomment-1022927885, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGMPRZI6VM4WFIAYPX3N5TUYDZDDANCNFSM4U5Q3GNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>