There are many versions of nodejs, I noticed that if I have the latest version of nodejs, I can not install a previous version of ionic, I tried after installing the nodejs is entered in the terminal as administrator I forced the installation this way (I'm using Windows 10 and another machine with 8.1):
command: npm install -g cordova [email protected]
error generates ionic installation.