I start learning ionic-framework, my problem is I cannot install ionic-framework in ubuntu. My Node.js's version is v0.12.7
and npm version is 2.11.3
. I follow http://ionicframework.com/docs/guide/installation.html link, I get the following error::
install cordova
root@meutex-pc:~# npm install -g cordova
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
/home/meutex/npm/bin/cordova ->/home/meutex/npm/lib/node_modules/cordova/bin/cordova
[email protected] /home/meutex/npm/lib/node_modules/cordova
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected],[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
install ionic
root@meutex-pc:~# npm install -g ionic
npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.7","npm":"2.11.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
npm WARN installMany normalize-package-data was bundled with [email protected], but bundled package wasn't found in unpacked tree
...................................................................
...................................................................
...................................................................
Now create first ionic app:
root@meutex-pc:~# ionic start test blank
TypeError: Invalid Version: Not installed
at new SemVer (/home/meutex/npm/lib/node_modules/ionic/node_modules/semver/semver.js:295:11)
at Range.test (/home/meutex/npm/lib/node_modules/ionic/node_modules/semver/semver.js:1049:15)
at Function.satisfies (/home/meutex/npm/lib/node_modules/ionic/node_modules/semver/semver.js:1098:16)
at Object.checkRuntime (/home/meutex/npm/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/info.js:295:32)
at Object.run (/home/meutex/npm/lib/node_modules/ionic/lib/cli.js:54:10)
at Object.<anonymous> (/home/meutex/npm/lib/node_modules/ionic/bin/ionic:9:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Invalid Version: Not installed (CLI v1.6.4)
Your system information:
Cordova CLI: Not installed
Gulp version: CLI version 3.9.0
Gulp local:
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS
Node Version: v0.12.7
Edit: I also uninstall node.js v0.12.7 and then install node.js v0.10.x and still same problem and it require node.js v0.12.x