auth0-blog / react-flux-jwt-authentication-sample

Sample for implementing Authentication with a React Flux app and JWTs
590 stars 101 forks source link

npm error when launching. "missing script: watch" #19

Open wanderingstan opened 9 years ago

wanderingstan commented 9 years ago

This may be obvious to someone more experienced with node, but I'm getting this error when attempting to run in a freshly cloned repo:

/somedir$ npm run watch
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "watch"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! missing script: watch
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!     /somedir/nodejs-jwt-authentication-sample/npm-debug.log
dopeboy commented 9 years ago

I think this might have to do with nodemon not being in the dependencies in package.json (see my PR for more details).

Do npm install nodemon --save-dev and try again.

quantuminformation commented 7 years ago

I tried npm install nodemon --save-dev for a similar error in another repo but didn't have any luck.