react-yelp-clone
react-yelp-clone copied to clipboard
npm start error: Failed at the [email protected] start script 'cross-env NODE_ENV=development hjs-dev-server'
I've done everything according to the instructions in README.md starting from installing dependencies, adding API key to .env. Not entirely sure where to go from here. I've tried changing the port as well.
I ran into the same issue and tried npm update
which seems to work, but it triggered this error in the console:
You have provided a history object created with history v3.x. This version of React Router is not compatible with v3 history objects. Please use history v2.x instead.
Seems like I updated too much.
So I uninstalled react, react-dom and react-router (npm uninstall react,react-router,react-dom
) and installed the exact same versions which are used in this tutorial with
npm install --save-dev [email protected] [email protected] [email protected]
Now the code runs.
I was using 7.10.0 and getting error while doing like @freimuth82 did. Solved it by updating my NodeJS version to 8.9.0