What is the right nodejs version for ionic?

When I installed node 0.12.x and then installed ionic and cordova, I see warnings such as expecting ~0.10.x

When I installed 0.10.40 and then installed ionic and cordova, I see warnings such as - for CLI to run correctly update nodejs to 0.12.x

What’s a mere mortal to do?

@dines

-> When I installed node 0.12.x and then installed ionic and cordova, I see warnings such as expecting ~0.10.x

npm is checking each module (package) and telling you what it has found in ‘package.json’.

See: https://github.com/npm/node-semver

-> When I installed 0.10.40 and then installed ionic and cordova, I see warnings such as - for CLI to run correctly update nodejs to 0.12.x

I generally run the latest production versions of node, npm, Ionic and Cordova.

$ ionic info

Your system information:

Cordova CLI: 5.1.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
ios-deploy version: 1.7.0 
ios-sim version: 3.1.1 
OS: Mac OS X Yosemite
Node Version: v0.12.5
Xcode version: Xcode 6.4 Build version 6E35b 

-> What’s a mere mortal to do?

Post a question on the Ionic forum :slight_smile: or on Stack Overflow.

Ref: http://robferguson.org/2015/07/06/ionic-angular-and-cordova/

If you’re not already using it, use nvm (or nodist on Windows) so that you can easily switch between versions.

2 Likes

use the latest stable nodejs version and thats 0.12.x because they changed and fixed some low-level apis.
like gmarziou said you could use nvm to manage multiple node versions on one system.

Or use the ionic virtual machine… to have anything installed you need:
http://blog.ionic.io/ionic-vagrant-android/

1 Like