Home > Software engineering >  Npm Install ERR! message
Npm Install ERR! message

Time:11-19

npm ERR! code ENOENT

npm ERR! syscall open

npm ERR! path /Users/giovanylopes/bootcamp-projects/react-nodejs-example/package.json

npm ERR! errno -2

npm ERR! enoent ENOENT: no such file or directory, open '/Users/giovanylopes/bootcamp-projects/react-nodejs-example/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! /Users/giovanylopes/.npm/_logs/2022-11-18T14_26_47_519Z-debug-0.log

I was expecting to install all the dependencies that are defined in the package.json file

CodePudding user response:

Most probably you don't have a package.json file in /Users/giovanylopes/bootcamp-projects/react-nodejs-example/ directory.

CodePudding user response:

The part of the error that you have posted to focus on is the following piece:

no such file or directory, open '/Users/giovanylopes/bootcamp-projects/react-nodejs-example/package.json'

It can't find your package.json file at the location it has listed. Take a look at that location and make sure that you have a package.json file there.

  • Related