npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path E:Nodejscrudfrontendpackage.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open ‘E:Nodejscrudfrontendpackage.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Unable to install npm on visual studio code
I’ve tried it many times and I expect that npm should be installed
2
Answers
It seems like your project is not initialized, or you are running npm install in the wrong folder.
package.json
, which is the file used to perform the install, is missing. It needs to be located in your current folder when running this command.If you are trying to initialize a project at this location, use
npm init
.It seems you tried to practice CRUD pattern with Node.js.
I assume you missed the package.json on frontend directory.
You need to command.
If that does not work on your vs code, then try to install npm/node on your machine
After that following commands