skip to Main Content
**Purva@DESKTOP-SS7ERSC /cygdrive/c**
$ npx create-react-app my-app
npm ERR! code ENOENT
npm ERR! syscall spawn C:Program Files (x86)mingw-w64i686-8.1.0-posix-dwarf-r
t_v6-rev0mingw32bin
npm ERR! path C:
npm ERR! errno -4058
npm ERR! enoent spawn C:Program Files (x86)mingw-w64i686-8.1.0-posix-dwarf-rt
_v6-rev0mingw32bin ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersPurvaAppDataLocalnpm-cache_logs2023-04-10T08_29_03_15
4Z-debug-0.log

I have tried uninstalling the nodejs and then reinstalling it. But the same error keeps showing again and again.
I have checked the environment variables and in that , the user variables have the path(node related only) :

C:UsersPurvaAppDataRoamingnpm

and the system variables have the paths:

C:UsersPurvaAppDataRoamingnpm
C:Program Filesnodejs
C:Program Filesnodejsnode_modulesnpmbin

Please help me with the problem

2

Answers


  1. Try:

    npx create-react-app@latest my-app
    
    Login or Signup to reply.
  2. I don’t know if this helps but

    npx create-react-app my-app
    

    didn’t work when i tried to create my first react app so i used yarn instead. Command

    npm install --global yarn
    

    installs yarn and then you can just perform command

    yarn create react-app my-app
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search