Can't install ionic via npm

Hi!
I startet several projects with ionic and it worked always like a charm. I changed nothing on my configuration, but now I’m not able to install or start anything. There are only errors in the cmd (I use win8):

D:\Web\dierechnungstimmt\a>npm install -g cordova ionic
npm ERR! fetch failed https://registry.npmjs.org/ionic/-/ionic-1.3.18.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/optimist/-/optimist-0.6.0.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/serve-static/-/serve-static-1.7.1.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/colors/-/colors-0.6.2.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/ncp/-/ncp-0.4.2.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/opbeat-ionic/-/opbeat-ionic-1.1.3.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.7.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/from/-/from-0.1.3.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
...

C:\Users\Basti\AppData\Roaming\npm\ionic -> C:\Users\Basti\AppData\Roaming\npm\node_modules\ionic\bin\ionic
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" "ionic"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     D:\Web\dierechnungstimmt\a\npm-debug.log

I’m not behind a proxy and my internet connection is fine.
Also tried to reinstall node with deleting all files and restart.

Can please someone help me with this?

Have you tried running using sudo?

I’m on win8.

sudo only works on linux or?

Sorry I don’t use Windows.

Another thing to check is that you’re up to date with your version of node.

little more to say here

Might sound silly… but do you have the internet connectivity available? Fetching the packages might time-out.

ECONNRESET refers to network connectivity issues.

Yes, internet connection is there, for sure.

I also tried it on linux in a virtualbox, but there’s quite the same problem.

Don’t know what else to try to solve this!

May be some firewall issues. I am not expert… but my 2 cents on this.

Thank you for the idea.

Tried it with turned off firewall:

    npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.1","npm":"2.5.1"})
npm WARN engine cordova-js@3.8.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.1","npm":"2.5.1"})
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.1","npm":"2.5.1"})
C:\Users\Basti\AppData\Roaming\npm\cordova -> C:\Users\Basti\AppData\Roaming\npm\node_modules\cordova\bin\cordova
C:\Users\Basti\AppData\Roaming\npm\ionic -> C:\Users\Basti\AppData\Roaming\npm\node_modules\ionic\bin\ionic
cordova@4.3.0 C:\Users\Basti\AppData\Roaming\npm\node_modules\cordova
Ôö£ÔöÇÔöÇ underscore@1.7.0
Ôö£ÔöÇÔöÇ q@1.0.1
Ôö£ÔöÇÔöÇ nopt@3.0.1 (abbrev@1.0.5)
ÔööÔöÇÔöÇ cordova-lib@4.3.0 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, semver@2.0.11, unorm@1.3.3, shelljs@0.3.0, elementtree@0.1.5, xcode@0.6.7, through2@0.6.3, rc@0.5.2, dep-graph@1.1.0, d8@0.4.4, request@2.47.0, glob@4.0.6, npmconf@0.1.16, init-package-json@1.3.0, tar@1.0.2, npm@1.3.4, plist@1.1.0, cordova-js@3.8.0)

ionic@1.3.18 C:\Users\Basti\AppData\Roaming\npm\node_modules\ionic
Ôö£ÔöÇÔöÇ proxy-middleware@0.7.0
Ôö£ÔöÇÔöÇ connect-livereload@0.5.2
Ôö£ÔöÇÔöÇ progress@1.1.7
Ôö£ÔöÇÔöÇ colors@0.6.2
Ôö£ÔöÇÔöÇ open@0.0.5
Ôö£ÔöÇÔöÇ ncp@0.4.2
Ôö£ÔöÇÔöÇ underscore@1.7.0
Ôö£ÔöÇÔöÇ crc@3.2.1
Ôö£ÔöÇÔöÇ async@0.9.0
Ôö£ÔöÇÔöÇ q@1.0.1
Ôö£ÔöÇÔöÇ cross-spawn@0.2.3 (lru-cache@2.5.0)
Ôö£ÔöÇÔöÇ shelljs@0.2.6
Ôö£ÔöÇÔöÇ semver@4.3.1
Ôö£ÔöÇÔöÇ form-data@0.1.4 (mime@1.2.11, combined-stream@0.0.7)
Ôö£ÔöÇÔöÇ optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.10)
Ôö£ÔöÇÔöÇ xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.6.2)
Ôö£ÔöÇÔöÇ npm@2.1.3
Ôö£ÔöÇÔöÇ event-stream@3.0.20 (stream-combiner@0.0.4, duplexer@0.1.1, from@0.1.3, pause-stream@0.0.11, map-stream@0.0.5, split@0.2.10, through@2.3.6)
Ôö£ÔöÇÔöÇ finalhandler@0.2.0 (escape-html@1.0.1, debug@2.0.0)
Ôö£ÔöÇÔöÇ connect@3.1.1 (utils-merge@1.0.0, parseurl@1.3.0, finalhandler@0.1.0, debug@1.0.4)
Ôö£ÔöÇÔöÇ opbeat-ionic@1.1.3 (json-stringify-safe@5.0.0, console-log-level@1.0.0, stackman@0.2.2, after-all@2.0.1)
Ôö£ÔöÇÔöÇ serve-static@1.7.1 (utils-merge@1.0.0, escape-html@1.0.1, parseurl@1.3.0, send@0.10.1)
Ôö£ÔöÇÔöÇ unzip@0.1.9 (setimmediate@1.0.2, match-stream@0.0.2, pullstream@0.4.1, readable-stream@1.0.33, binary@0.3.0, fstream@0.1.31)
Ôö£ÔöÇÔöÇ tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, qs@0.5.6, noptify@0.0.3)
Ôö£ÔöÇÔöÇ prompt@0.2.12 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.5, utile@0.2.1, winston@0.6.2)
Ôö£ÔöÇÔöÇ request@2.51.0 (caseless@0.8.0, json-stringify-safe@5.0.0, aws-sign2@0.5.0, forever-agent@0.5.2, stringstream@0.0.4, tunnel-agent@0.4.0, oauth-sign@0.5.0, node-uuid@1.4.3, qs@2.3.3, mime-types@1.0.2, combined-stream@0.0.7, form-data@0.2.0, tough-cookie@0.12.1, http-signature@0.10.1, bl@0.9.4, hawk@1.1.1)
Ôö£ÔöÇÔöÇ vinyl-fs@0.3.7 (graceful-fs@3.0.6, strip-bom@1.0.0, vinyl@0.4.6, mkdirp@0.5.0, lodash@2.4.1, glob-stream@3.1.18, through2@0.6.3, glob-watcher@0.0.6)
Ôö£ÔöÇÔöÇ archiver@0.5.1 (lodash@2.4.1, readable-stream@1.1.13, zip-stream@0.1.4, lazystream@0.1.0, file-utils@0.1.5)
ÔööÔöÇÔöÇ gulp@3.8.8 (pretty-hrtime@0.2.2, interpret@0.3.10, deprecated@0.0.1, archy@0.0.2, minimist@1.1.1, semver@3.0.1, chalk@0.5.1, tildify@1.0.0, liftoff@0.12.1, orchestrator@0.3.7, gulp-util@3.0.4)

It lasts very long but don’t work…

hmm, what version of node are you using?
Some people have reported having issues with node 0.12.
Can you downgrade your version of node and try 0.10?

I had 0.12 and tried now 0.8 and 0.10 but unfortunately nothing changed:

D:\Web\dierechnungstimmt>npm install i -g cordova ionic
C:\Users\Basti\AppData\Roaming\npm\cordova -> C:\Users\Basti\AppData\Roaming\npm\node_modules\cordova\bin\cordova
C:\Users\Basti\AppData\Roaming\npm\ionic -> C:\Users\Basti\AppData\Roaming\npm\node_modules\ionic\bin\ionic
i@0.3.2 C:\Users\Basti\AppData\Roaming\npm\node_modules\i

cordova@4.3.0 C:\Users\Basti\AppData\Roaming\npm\node_modules\cordova
Ôö£ÔöÇÔöÇ underscore@1.7.0
Ôö£ÔöÇÔöÇ q@1.0.1
Ôö£ÔöÇÔöÇ nopt@3.0.1 (abbrev@1.0.5)
ÔööÔöÇÔöÇ cordova-lib@4.3.0 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, unorm@1.3.3, semver@2.0.11, dep-graph@1.1.0, shelljs@0.3.0, rc@0.5.2, through2@0.6.3, npmconf@0.1.16, xcode@0.6.7, glob@4.0.6, elementtree@0.1.5, d8@0.4.4, init-package-json@1.3.0, request@2.47.0, tar@1.0.2, plist@1.1.0, cordova-js@3.8.0, npm@1.3.4)

ionic@1.3.18 C:\Users\Basti\AppData\Roaming\npm\node_modules\ionic
Ôö£ÔöÇÔöÇ proxy-middleware@0.7.0
Ôö£ÔöÇÔöÇ connect-livereload@0.5.2
Ôö£ÔöÇÔöÇ progress@1.1.7
Ôö£ÔöÇÔöÇ colors@0.6.2
Ôö£ÔöÇÔöÇ open@0.0.5
Ôö£ÔöÇÔöÇ underscore@1.7.0
Ôö£ÔöÇÔöÇ async@0.9.0
Ôö£ÔöÇÔöÇ ncp@0.4.2
Ôö£ÔöÇÔöÇ crc@3.2.1
Ôö£ÔöÇÔöÇ q@1.0.1
Ôö£ÔöÇÔöÇ cross-spawn@0.2.3 (lru-cache@2.5.0)
Ôö£ÔöÇÔöÇ shelljs@0.2.6
Ôö£ÔöÇÔöÇ semver@4.3.1
Ôö£ÔöÇÔöÇ finalhandler@0.2.0 (escape-html@1.0.1, debug@2.0.0)
Ôö£ÔöÇÔöÇ event-stream@3.0.20 (stream-combiner@0.0.4, duplexer@0.1.1, from@0.1.3, pause-stream@0.0.11, map-stream@0.0.5, split@0.2.10, through@2.3.6)
Ôö£ÔöÇÔöÇ connect@3.1.1 (utils-merge@1.0.0, parseurl@1.3.0, finalhandler@0.1.0, debug@1.0.4)
Ôö£ÔöÇÔöÇ optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.10)
Ôö£ÔöÇÔöÇ form-data@0.1.4 (mime@1.2.11, combined-stream@0.0.7)
Ôö£ÔöÇÔöÇ opbeat-ionic@1.1.3 (json-stringify-safe@5.0.0, console-log-level@1.0.0, stackman@0.2.2, after-all@2.0.1)
Ôö£ÔöÇÔöÇ serve-static@1.7.1 (utils-merge@1.0.0, escape-html@1.0.1, parseurl@1.3.0, send@0.10.1)
Ôö£ÔöÇÔöÇ tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, noptify@0.0.3, qs@0.5.6)
Ôö£ÔöÇÔöÇ request@2.51.0 (caseless@0.8.0, json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, stringstream@0.0.4, tunnel-agent@0.4.0, oauth-sign@0.5.0, node-uuid@1.4.3, qs@2.3.3, mime-types@1.0.2, combined-stream@0.0.7, tough-cookie@0.12.1, bl@0.9.4, http-signature@0.10.1, form-data@0.2.0, hawk@1.1.1)
Ôö£ÔöÇÔöÇ unzip@0.1.9 (setimmediate@1.0.2, pullstream@0.4.1, readable-stream@1.0.33, match-stream@0.0.2, binary@0.3.0, fstream@0.1.31)
Ôö£ÔöÇÔöÇ prompt@0.2.12 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.5, winston@0.6.2, utile@0.2.1)
Ôö£ÔöÇÔöÇ vinyl-fs@0.3.7 (graceful-fs@3.0.6, strip-bom@1.0.0, vinyl@0.4.6, mkdirp@0.5.0, through2@0.6.3, glob-stream@3.1.18, lodash@2.4.1, glob-watcher@0.0.6)
Ôö£ÔöÇÔöÇ archiver@0.5.1 (readable-stream@1.1.13, lazystream@0.1.0, zip-stream@0.1.4, lodash@2.4.1, file-utils@0.1.5)
Ôö£ÔöÇÔöÇ gulp@3.8.8 (pretty-hrtime@0.2.2, interpret@0.3.10, deprecated@0.0.1, archy@0.0.2, minimist@1.1.1, tildify@1.0.0, semver@3.0.1, chalk@0.5.1, orchestrator@0.3.7, gulp-util@3.0.4, liftoff@0.12.1)
Ôö£ÔöÇÔöÇ xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.6.2)
ÔööÔöÇÔöÇ npm@2.1.3

Also running the cmd as administrator brings no solution:

C:\Users\Basti\Desktop>npm install i -g cordova
npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.10.38","npm":"2.7.4"})
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
C:\Program Files (x86)\nodejs\cordova -> C:\Program Files (x86)\nodejs\node_modules\cordova\bin\cordova
i@0.3.2 C:\Program Files (x86)\nodejs\node_modules\i

cordova@4.3.0 C:\Program Files (x86)\nodejs\node_modules\cordova
Ôö£ÔöÇÔöÇ underscore@1.7.0
Ôö£ÔöÇÔöÇ q@1.0.1
Ôö£ÔöÇÔöÇ nopt@3.0.1 (abbrev@1.0.5)
ÔööÔöÇÔöÇ cordova-lib@4.3.0 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, semver@2.0.11, unorm@1.3.3, rc@0.5.2, shelljs@0.3.0, dep-graph@1.1.0, npmconf@0.1.16, through2@0.6.3, xcode@0.6.7, init-package-json@1.3.0, d8@0.4.4, elementtree@0.1.5, request@2.47.0, glob@4.0.6, tar@1.0.2, plist@1.1.0, cordova-js@3.8.0, npm@1.3.4)

Don’t know exactly why, but it’s working again now! Thanks for all hints!