gothinkster / react-redux-realworld-example-app

Exemplary real world application built with React + Redux
https://react-redux.realworld.io
MIT License
5.57k stars 2.51k forks source link

'cross-env' is not recognized as an internal or external command #97

Open Avinash0203 opened 6 years ago

Avinash0203 commented 6 years ago

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-redux-realworld-example-app@0.1.0 start: cross-env PORT=4100 react-scripts start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-redux-realworld-example-app@0.1.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\avina\AppData\Roaming\npm-cache_logs\2018-01-13T17_57_52_129Z-debug.log

I am getting this error please help me resolving it.

radzak commented 6 years ago

Just npm install --save-dev cross-env in the root directory of your project.

gmkhussain commented 6 years ago

This is issue fixed for me with running yarn install

First you run. npm install

Make sure you have installed cross-env install cross-env

anmoldhingra1 commented 5 years ago

I first change the port number in my backend that is django to 4100, as there 4000 is mention in settings.py. Secondly, i install >npm install react-scripts@0.9.5

freakweb89 commented 4 years ago

Just npm install --save-dev cross-env in the root directory of your project.

Worked like a charm. Thank you :)

JZ-314 commented 3 years ago

Just npm install -g cross-env on the local