Installed ionic but its not working


#1

after installing ionic and running it on the command line interface, nothing happened.

no errors on installation, running on ubuntu 14.04, installed ionic using

$ sudo npm install -g cordova
$ sudo npm install -g ionic

when installation ends, i try to type ionic command and this happened.

$ ionic
$
$ionic -v
$


#2

nvm,

fixed it by updating nodejs to latest version.

oddly it still work although i receive a warning from cordova installation (it is looking for 0.10x but i currently have 0.12) but at the end of the day it still works.