C:\Users\shagy\Desktop\3RD YEAR 2ND SEMESTER\SPM\Newfolder\SPM-SMS>npm start
npm ERR! path C:\Users\shagy\Desktop\3RD YEAR 2ND SEMESTER\SPM\New folder\SPM-SMS\package.json npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\shagy\Desktop\3RD YEAR 2ND SEMESTER\SPM\New folder\SPM-SMS\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\shagy\AppData\Roaming\npm-cache\_logs\2018-09-05T14_23_49_736Z-debug.log
How to resolve this issue? Even after npm install
, this error is showing up
Best Answer
This is related to npm not being able to find a file. The error-message
npm ERR! enoent
is telling you that the file can't be found.First check if the file actually exists on your fs under that path and check the reference-path you use to call that file for possible typos.
If this is a fresh project you can call
and node will initliaize your project and create a
package.json
for you..From the official docs:
For more detailed information please read the official docs about npm init.