skip to Main Content

C:UsersasusDesktopabc> npx create-react react-app
npm ERR! could not determine executable to run

npm ERR! A complete log of this run can be found in: C:UsersasusAppDataLocalnpm-cache_logs2023-05-01T15_44_34_936Z-debug-0.log

C:UsersasusDesktopabc>npx create-react-app my-cart

Creating a new React app in C:UsersasusDesktopabcmy-cart.

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

npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno ECONNRESET
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/@babel%2Fparser: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’

npm ERR! A complete log of this run can be found in: C:UsersasusAppDataLocalnpm-cache_logs2023-05-01T15_50_36_835Z-debug-0.log

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

Deleting generated file… package.json
Deleting my-cart/ from C:UsersasusDesktopabc
Done.

C:UsersasusDesktopabc>npx create-react-app my-cart

please give any solution this installation

2

Answers


  1. Seems like you have problems with your internet connection. You can try yarn instead of npm, it continues installs even if something happens to your connection. You can install it by typing

    npm install -g yarn
    

    and then create react app with command

    yarn create react-app my-app
    
    Login or Signup to reply.
  2. Looks like you are trying to create a new React app but issued the wrong script/command.

    npx create-react react-app
    

    create-react isn’t a script npx could find and run. create-react isn’t the same thing as create-react-app.

    The script/commend should probably be something more like the following:

    npx create-react-app <your new app name here>
    

    Be sure to review the Getting Started guide and familiarize yourself with the CLI for the rest of the project setup and dependency installation.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search