skip to Main Content

When I fire the above command in the terminal it shows error like
npm Err! code-ENOENT
npm Err! syscall lstat
npm Err! path

While in my instructor laptops properly works in this command. I am attaching the terminal image snapshot for reference:enter image description here

I tried the other ways like online editors and searching on yt.

2

Answers


  1. Chosen as BEST ANSWER

    I have found out the solution. To solve the issue,you have the following ways:

    1.)- just create a folder (named npm) in the AppData folder(sometimes hidden) in the users folder of the main drive.

    2.) Use npm install -g npm and then run npx create-app my-app.


  2. Run npm install -g npm and then run npx create-react-app my-app again

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