Impossible to Install Cordova Ionic

Hello everybody.

I have a problem installing Ionic Cordova on my Windows 8.1 x64 bits using NPM v3.5.1 with NodeJS v5.2.0 here is the console log :

C:\vendor\js
└─┬ ionic@1.7.12
├─┬ gulp@3.8.8
│ └─┬ gulp-util@3.0.7
│ └─┬ lodash.template@3.6.2
│ └── lodash._basetostring@3.0.1
├─┬ ionic-app-lib@0.6.5
│ ├─┬ ionic-cordova-lib@5.1.10
│ │ └─┬ npm@2.14.13
│ │ ├─┬ node-gyp@3.2.0
│ │ │ └─┬ npmlog@1.2.1
│ │ │ └─┬ gauge@1.2.2
│ │ │ ├─┬ lodash.pad@3.1.1
│ │ │ │ ├── lodash._basetostring@3.0.1
│ │ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ │ └── lodash.repeat@3.0.1
│ │ │ ├─┬ lodash.padleft@3.1.1
│ │ │ │ ├── lodash._basetostring@3.0.1
│ │ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ │ └── lodash.repeat@3.0.1
│ │ │ └─┬ lodash.padright@3.1.1
│ │ │ ├── lodash._basetostring@3.0.1
│ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ └── lodash.repeat@3.0.1
│ │ ├─┬ npm-install-checks@1.0.6
│ │ │ └─┬ npmlog@1.2.1
│ │ │ └─┬ gauge@1.2.2
│ │ │ ├─┬ lodash.pad@3.1.1
│ │ │ │ ├── lodash._basetostring@3.0.1
│ │ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ │ └── lodash.repeat@3.0.1
│ │ │ ├─┬ lodash.padleft@3.1.1
│ │ │ │ ├── lodash._basetostring@3.0.1
│ │ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ │ └── lodash.repeat@3.0.1
│ │ │ └─┬ lodash.padright@3.1.1
│ │ │ ├── lodash._basetostring@3.0.1
│ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ └── lodash.repeat@3.0.1
│ │ └─┬ npmlog@2.0.0
│ │ └─┬ gauge@1.2.2
│ │ ├─┬ lodash.pad@3.1.1
│ │ │ ├── lodash._basetostring@3.0.1
│ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ └── lodash.repeat@3.0.1
│ │ ├─┬ lodash.padleft@3.1.1
│ │ │ ├── lodash._basetostring@3.0.1
│ │ │ └─┬ lodash._createpadding@3.6.1
│ │ │ └── lodash.repeat@3.0.1
│ │ └─┬ lodash.padright@3.1.1
│ │ ├── lodash._basetostring@3.0.1
│ │ └─┬ lodash._createpadding@3.6.1
│ │ └── lodash.repeat@3.0.1
│ └─┬ node-sass@3.4.2
│ └─┬ node-gyp@3.2.0
│ └─┬ npmlog@1.2.1
│ └─┬ gauge@1.2.2
│ ├─┬ lodash.pad@3.1.1
│ │ ├── lodash._basetostring@3.0.1
│ │ └─┬ lodash._createpadding@3.6.1
│ │ └── lodash.repeat@3.0.1
│ ├─┬ lodash.padleft@3.1.1
│ │ ├── lodash._basetostring@3.0.1
│ │ └─┬ lodash._createpadding@3.6.1
│ │ └── lodash.repeat@3.0.1
│ └─┬ lodash.padright@3.1.1
│ ├── lodash._basetostring@3.0.1
│ └─┬ lodash._createpadding@3.6.1
│ └── lodash.repeat@3.0.1
└─┬ npm@2.1.3
└─┬ npm-registry-client@3.2.2
└─┬ npmlog@2.0.0
└─┬ gauge@1.2.2
├─┬ lodash.pad@3.1.1
│ ├── lodash._basetostring@3.0.1
│ └─┬ lodash._createpadding@3.6.1
│ └── lodash.repeat@3.0.1
├── lodash.padleft@3.1.1
└── lodash.padright@3.1.1

npm ERR! Windows_NT 6.3.9600
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\vendor\js\node_module
s\npm\bin\npm-cli.js” “install” “-g” “cordova” "ionic"
npm ERR! node v5.2.0
npm ERR! npm v3.5.1
npm ERR! path C:\vendor\js\node_modules.staging\has-unicode-561d5218cc54ead8cd3
becf382923f01
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\vendor\js\node_mod
ules.staging\has-unicode-561d5218cc54ead8cd3becf382923f01’ -> 'C:\vendor\js\nod
e_modules\cordova\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_m
odules\has-unicode’
npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\vendor\js\node_mod
ules.staging\has-unicode-561d5218cc54ead8cd3becf382923f01’ -> 'C:\vendor\js\nod
e_modules\cordova\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_m
odules\has-unicode’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\crazy\npm-debug.log

So is there anyone who can help me here !

It looks like privilege rights on your machine. OS users use a sudo command to deal with this

i try executing the command using the Administrator but doens’t work and there is no sudo on windows :stuck_out_tongue:

Prefer LTS (Long Term Support) release of node: 4.3.x, it is much more stable than so callled “stable” releases.
Prefer npm 2.x to 3.x.

Also on Windows, use nodist to install node,this way you won’t need admin rights and will be able to use several versions.