Reputation: 1
I installed NodeJs LTS v8.11.3 for windows. Then in cmd I wrote npm -g install create-react-app but I gave a an error that I need Node 4 or higher.
When I run node --v, I have got 0.12.2.
I didn't find how can I change it on windows. I already tried uninstall and restart computer, clean the cache, check windows path if nodeJs is here...
After that, still the same error:
*You are running Node 0.12.2.
Create React App requires Node 4 or higher.
Please update your version of Node.*
What should I do more? Thanks for ideas.
Upvotes: 0
Views: 2984
Reputation: 1
Ok, I solved it by these steps:
Thanks for your time.
Upvotes: 0
Reputation: 397
I have moved from 0.8 to 0.10, using the .msi package, overwriting the one installed on my system. Package problems were all fixed with npm update -g. Worked like a charm.
In case it does not work like a charm:
npm cache clean usually fixes the problem. Once the cache is empty, just run npm update -g again.
Upvotes: 2