0
shabi posted
how to upgarde Node js ?
trying to install react-native-cli by
sudo npm install -g react-native-cli
and i got following output
npm WARN engine react-native-cli@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.12.2","npm":"2.7.4"})
/usr/local/bin/react-native -> /usr/local/lib/node_modules/react-native-cli/index.js
react-native-cli@2.0.1 /usr/local/lib/node_modules/react-native-cli
├── semver@5.4.1
├── minimist@1.2.0
├── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, has-ansi@2.0.0, strip-ansi@3.0.1)
└── prompt@0.2.14 (pkginfo@0.4.1, revalidator@0.1.8, read@1.0.7, winston@0.8.3, utile@0.2.1)
it says wanted: {"node":">=4"} (current: {"node":"0.12.2","npm":"2.7.4"}
means it need node version upper than 4.0 and current version is 0.12.2
so how can i upgrade Node js ? using mac system