question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error MacOS npm start

See original GitHub issue

Hi, I am getting this error doing npm start in the home directory

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5

npm ERR! missing script: start
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ccontreras/Dev/NodeJS/starhackit-master/npm-debug.log

And this in server folder

> starhackit-api@2.4.0 prestart /Users/ccontreras/Dev/NodeJS/starhackit-master/server
> npm run lint


> starhackit-api@2.4.0 lint /Users/ccontreras/Dev/NodeJS/starhackit-master/server
> eslint src

ENOENT: no such file or directory, lstat '/Users/ccontreras/Dev/NodeJS/starhackit-master/server/src/**'
Error: ENOENT: no such file or directory, lstat '/Users/ccontreras/Dev/NodeJS/starhackit-master/server/src/**'
    at Error (native)
    at Object.fs.lstatSync (fs.js:839:18)
    at Object.realpathSync (fs.js:1439:21)
    at /Users/ccontreras/Dev/NodeJS/starhackit-master/server/node_modules/eslint/lib/util/glob-util.js:159:24
    at Array.forEach (native)
    at Object.listFilesToProcess (/Users/ccontreras/Dev/NodeJS/starhackit-master/server/node_modules/eslint/lib/util/glob-util.js:153:18)
    at CLIEngine.executeOnFiles (/Users/ccontreras/Dev/NodeJS/starhackit-master/server/node_modules/eslint/lib/cli-engine.js:702:35)
    at Object.execute (/Users/ccontreras/Dev/NodeJS/starhackit-master/server/node_modules/eslint/lib/cli.js:174:107)
    at Object.<anonymous> (/Users/ccontreras/Dev/NodeJS/starhackit-master/server/node_modules/eslint/bin/eslint.js:76:28)
    at Module._compile (module.js:409:26)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! starhackit-api@2.4.0 lint: `eslint src`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the starhackit-api@2.4.0 lint script 'eslint src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the starhackit-api package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs starhackit-api
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls starhackit-api
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ccontreras/Dev/NodeJS/starhackit-master/server/npm-debug.log

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! starhackit-api@2.4.0 prestart: `npm run lint`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the starhackit-api@2.4.0 prestart script 'npm run lint'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the starhackit-api package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run lint
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs starhackit-api
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls starhackit-api
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ccontreras/Dev/NodeJS/starhackit-master/server/npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FredericHeemcommented, Oct 5, 2016

It should work fine with npm 3

1reaction
FredericHeemcommented, Oct 4, 2016

This bug bit me too a few days ago, the current workaround is to npm install inside server as well as in client. Thanks for the report.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM Start isn't working (Can't get Node working on Mac OS X ...
I'm a Rails guy, but I'm trying to learn a bit of Angular JS. I wanted to go through this tutorial, but I...
Read more >
Instructions on how to fix npm if you've installed ... - GitHub Gist
This solution fixes the error caused by trying to run npm update npm -g . Once you're finished, you also won't need to...
Read more >
"npm start" permission denied error: how to solve it?
So, to solve this issue all you have to do is: · Remove Node If in OSX run brew uninstall node · Delete...
Read more >
How to fix EACCES errors with NPM on MacOS - WILL & SKILL
Try running npm install -g ... or npm uninstall -g ... without sudo and it should run without errors.
Read more >
Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. This can be caused by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found