Shivam Rana
Shivam Rana

Reputation: 1

why does i cannot run the npm commands

here is the error when i run npm run start or nump start or any other npm command

 npm ERR! code ENOENT
 npm ERR! syscall open
 npm ERR! path C:\Users\Rana\Desktop\news app/package.json
 npm ERR! errno -4058
 npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Rana\Desktop\news 
 app\package.json'
 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:\Users\Rana\AppData\Local\npm-cache\_logs\2022-05-05T14_41_56_734Z-debug- 
 0.log```

Upvotes: 0

Views: 943

Answers (1)

Rahul K
Rahul K

Reputation: 73

Try npm init to create a project and then assign your npm commands inside the package.json that has been created. Use this reference.

Upvotes: 1

Related Questions