lvarayut / relay-fullstack

:point_up::running: Modern Relay Starter Kit - Integrated with Relay, GraphQL, Express, ES6/ES7, JSX, Webpack, Babel, Material Design Lite, and PostCSS
https://lvarayut.github.io/relay-fullstack/
MIT License
986 stars 126 forks source link

NPM Issue #16

Closed anchika closed 8 years ago

anchika commented 8 years ago

Hi,

I am new to relay and react . I followed the steps and got the npm issue on npm install.:

npm ERR! peerinvalid The package eslint-plugin-react@5.0.1 does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer eslint-config-airbnb@7.0.0 wants eslint-plugin-react@^ 4.3.0

I changed the dependency in package.json for eslint-plugin-react to 4.3.0. The npm install was successful then but on doing npm start I got following error:

$ npm start

relay-fullstack@1.0.0 start c:\Users\ancagarwal\Usage Analytics\relay\insights

nodemon --watch 'server/data/*/.js' --exec 'npm run update && babel-node ser ver/index.js'

[nodemon] 1.9.1 [nodemon] to restart at any time, enter rs [nodemon] watching: 'server/data/*/.js' [nodemon] starting 'npm run update ''npm' is not recognized as an internal or external command, operable program or batch file. [nodemon] app crashed - waiting for file changes before starting...

Please let me know if I am doing anything wrong.

lvarayut commented 8 years ago

@anchika It seems like the npm hasn't been set to your PATH. Are you using window? You might take a look at this StackOverflow question.

anchika commented 8 years ago

I am using windows. Npm was set in path but it seems like some issues with windows. When I tried same steps in Ubuntu, everything worked fine.

lvarayut commented 8 years ago

That's interesting. Did you try to add ;C:\Program Files\nodejs\ to the end of your Path variable and restart your command prompt?

blackpost38 commented 8 years ago

@anchika why don't you check this out https://github.com/remy/nodemon/issues/389. Maybe, this issue looks like a problem that you have

lvarayut commented 8 years ago

I'm going to close this issue since it seems to be not related to Relay Fullstack. Please feel free to continue the discussion here if you had more question.

agungsb commented 8 years ago

I manage to solve the problem by change the following script:

nodemon --watch 'server/data/**/*.js' --exec 'npm run update && babel-node server/index.js'

with

"nodemon --watch server/data/**/*.js --exec \"npm run update && babel-node server/index.js\""

It is located inside package.json. I hope this will help somoeone out there who face the same problem as I had.