Menu icon Foundation
Revisiting old site and now getting ENOENT Errors on npm start? :(

Hi all. I'm using Foundation for Sites, the SASS version. I recently revisted the local version of the site to make some new stylesheet changes. After making the changes and then running npm start to process the SASS to CSS I got the following errors.

 

My-MacBook-Pro:site catchlight$ npm start

npm ERR! path /Users/me/package.json

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/Users/me/package.json'

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent 

 

My Json file is...

{

  "name": "foundation-compass-app",

  "version": "0.0.1",

  "private": "true",

  "dependencies": {

    "foundation": "zurb/bower-foundation",

    "font-awesome": "~4.4.0"

  }

}

 

What do I need to do to fix this and edit my site again? 

 

Foundation

Hi all. I'm using Foundation for Sites, the SASS version. I recently revisted the local version of the site to make some new stylesheet changes. After making the changes and then running npm start to process the SASS to CSS I got the following errors.

 

My-MacBook-Pro:site catchlight$ npm start

npm ERR! path /Users/me/package.json

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/Users/me/package.json'

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent 

 

My Json file is...

{

  "name": "foundation-compass-app",

  "version": "0.0.1",

  "private": "true",

  "dependencies": {

    "foundation": "zurb/bower-foundation",

    "font-awesome": "~4.4.0"

  }

}

 

What do I need to do to fix this and edit my site again? 

 

Rafi Benkual about 2 years ago

Are you sure you're in the project? It usually says this when I don't cd into my project

How was the project created? Have you tried deleting node_modules and running npm i ?

Brock about 2 years ago

Durr! Thanks Rafi! (Pebkac)