0
votes

Whenever I am running npm start in my project it displays the following error

npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/abhi/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/home/abhi/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!
/home/abhi/.npm/_logs/2020-12-17T04_15_31_411Z-debug.log

abhi@Abhi:~/Projects/demo1$ 

I tried everything to fix the issue but did not find a solution. what I am missing in JSON.package ??

1
ENOENT: no such file or directory, open '/home/abhi/package.json' means there is file to read. Are u sure that you have package.json in your product directory?hellikiam

1 Answers

0
votes

is your package initialised at all? did you run

npm init

or your dependencies and their versions are correct? and the node version too?

Clear everything from the cache and try installing again

npm cache clean