0

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

Vincent Tang
  • 3,758
  • 6
  • 45
  • 63
  • 1
    Check this https://stackoverflow.com/q/20753550/1740715 – Harikrishnan Sep 07 '17 at 03:39
  • I tried these as well https://stackoverflow.com/questions/9484829/npm-cant-find-package-json , but I still cannot resolve the issue. I will just to just reclone my repo and reinstall nodejs, then my packages – Vincent Tang Sep 11 '17 at 23:49

1 Answers1

1

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

Vincent Tang
  • 3,758
  • 6
  • 45
  • 63