Install Ionic2 error when using getting started instructions

I am trying to get this installed and I get the following error when installing cordova using the instructions provided:

D:\source\bfc\dev_env>nodevars.bat
Your environment has been set up for using Node.js 5.11.1 (x64) and npm.

C:\Users\susan_000>npm install cordova -g
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\susan_000\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv “D:\source\bfc\dev_env\node.exe” “D:\source\bfc\dev_env\node_modules\npm\bin\npm-cli.js” “install” “cordova” "-g"
npm ERR! node v5.11.1
npm ERR! npm v3.8.6
npm ERR! path C:\Users\susan_000\AppData\Roaming\npm\node_modules.staging\abbrev-afa32bee
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\susan_000\AppData\Roaming\npm\node_modules.staging\abbrev-afa32bee’ -> 'C:\Users\susan_000\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev’
npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\susan_000\AppData\Roaming\npm\node_modules.staging\abbrev-afa32bee’ -> 'C:\Users\susan_000\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev’
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\susan_000\npm-debug.log
npm ERR! code 1

Has anyone seen this?

I haven’t seen this before, well not that I can remember, but you install cordova command seems to be wrong. Try npm install -g cordova

Try npm rebuild -g

THat happened to me. I just downloaded another of the templates.

I get the same result. This is so strange. No reason why it won’t work. I am not doing anything weird.

So I got it to work:
npm uninstall -g npm-check-updates
npm install -g npm-check-updates
npm cache clean
npm install readable-stream -g
npm uninstall cordova
npm uninstall cordova -g
npm cache clean
npm install -g cordova

1 Like

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

same thing happen when i try npm rebuild -g…
any alternative solution…