Vincent Tang
Vincent Tang

Reputation: 4170

NPM Install ENOENT no such file or directory

I'm getting this error when running npm install --save-dev gulp-coffee

ENOENT: No such file or directory

enter image description here

I have a package.json file in my root directory though

enter image description here

Didn't have any issues yesterday installing node modules but today I can't install dependencies

Upvotes: 0

Views: 2102

Answers (1)

Vincent Tang
Vincent Tang

Reputation: 4170

nothing seemed to work from other similar problems on stackoverflow, I ended up just deleting my repo. Then:

  1. git clone [my github url repo]
  2. cd [folder with node dependencies]
  3. npm install (installs node packages based on root package.json file)
  4. Run my gulp commands to test gulp watch, modified files being watched to see if gulp was working as intended. check to see files being changed as intended via git diff

Worked fine for me, it doesn't solve the original problem. Not sure why my package.json files were missing or why I could not repopulate them with a npm init

Upvotes: 1

Related Questions