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
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.
Run
npm install -g npm
and thenrun npx create-react-app my-app
again