Ionic will not install on Windows 10

PS C:\Users\francis> npm install -g ionic
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 ‘ionic/app-generators’ is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'ionic’
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Windows_NT 10.0.14393
npm ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\francis\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! cwd C:\Users\francis
npm ERR! node -v v4.4.5
npm ERR! npm -v 1.4.27
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\francis\npm-debug.log
npm ERR! not ok code 0
PS C:\Users\francis>

That’s a really old version of npm. My guess is it doesn’t support scoped packages, because it should install @ionic/app-generators, not ionic/app-generators.

Either install node v6, or at least upgrade npm by doing npm install -g npm.

Thank you for your help. I installed node v6 and rebooted. But npm seems
not to be working at all now - it just hangs like this:
[ …] \ fetch: sill doParallel fetch 1

I don’t really know what is going on with it - I’ll probably just give it
up.

Thanks again for your help.

Try running npm cache clean, sometimes it helps. Otherwise, you could try completely removing Node and npm first, then installing the latest version again.

I finally did get it installed - I did npm-windows-upgrade. Not sure if
that’s what did it. But it took a long time to install.
Thanks for your help. I will make a note to try npm cache clean if I run
into more problems.