Thomas
Thomas

Reputation: 1

Create-React-App requires Node 4.0 or higher - on Windows

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

Answers (2)

Thomas
Thomas

Reputation: 1

Ok, I solved it by these steps:

  1. Clean cache from cmd.
  2. Uninstall nodeJs from Program and Features.
  3. Remove folder nodeJs from PATH variable.
  4. Remove nondeleted folder nodeJs from ProgramFiles (here still were some files(?!)).
  5. Restart Computer and after that install nodeJs from website.
  6. After instalation - Restart Computer again.
  7. Run cmd and checked by node -version.

Thanks for your time.

Upvotes: 0

trungducng
trungducng

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

Related Questions