Cant update to ionic 2 RC0

Installing as administrator ,

Error :-

 npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Program Files\node
js\node_modules\.staging\ansi-6146f193' -> 'C:\Program Files\nodejs\node_modules
\ionic\node_modules\cordova-lib\node_modules\ansi'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Program Files\node
js\node_modules\.staging\ansi-6146f193' -> 'C:\Program Files\nodejs\node_modules
\ionic\node_modules\cordova-lib\node_modules\ansi'

Help is appreciated.

Node 6.7 is required, as well as whatever version of NPM comes with it. So I’d try updating first and then try again.

How to check this requirement? I couldn’t find it anywhere

did you check the ionic 2 changelog for rc0?

do you mean this?

I couldn’t find anywhere it says it require node 6.7…

Yeah I don’t believe it officially says it anywhere, but it seems everybody has had to update in order to install RC0

i was having the same issue. i have node v4.6 better not go with v6.7

if you have installed the beta cli you should run npm uninstall -g ionic first. You need version 2.1.0 for this release. Check your cli version by running ionic -v in the command line.

after that give
npm install -g ionic

you can also check other changelogs here

my node version is 5.x

doing npm uninstall -g ionic first and then npm install -g ionic worked for me. so it works on node 5.x too.

Edit :

This solved my problem. but i wonder if i should mark this as a solution.