简体   繁体   中英

Create-React-App requires Node 4.0 or higher

I installed NodeJs LTS v6.9.5 for windows, and then did npm -g install create-react-app But it gave me a warning that I need node 4.0

When I run node --version, I got 0.12.2

And when I run : create-react-app hello-world I got the error:

"You are running Node 0.12.2 Create React App requires Node 4 or higher"

any idea how to make it work.

And why node version shows 0.12.2, when I installed NodeJs LTS v6.9.5

You have multiple versions of node installed on your machine thats why it is showing 0.12.2 . Use n or nvm to change or switch node versions. (They are not supported on windows yet).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM