node.js - Can't install anything with npm ECONNRESET without proxy -


i used node.js install things via npm without problems. changed nothing on settings (win8; no proxy, internet working) , can't install (especially cordova , ionic). throws errors i'm behind proxy, i'm not.

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" "i" "-g" "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 not problem npm npm err! network , related network connectivity. npm err! network in cases behind proxy or have bad network settings. npm err! network  npm err! network if behind proxy, please make sure npm err! network 'proxy' config set properly.  see: 'npm config'  npm err! please include following file support request: npm err!     d:\web\dierechnungstimmt\npm-debug.log 

and

    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 npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (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"}) npm err! fetch failed https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.9.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.0.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/gaze/-/gaze-0.5.1.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/through2/-/through2-0.6.3.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.0.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/clone/-/clone-0.2.0.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz npm warn retry retry, error on last attempt: error: read econnreset npm err! fetch failed https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz npm warn retry retry, error on last attempt: error: read econnreset c:\users\basti\appdata\roaming\npm\cordova -> c:\users\basti\appdata\roaming\npm\node_modules\cordova\bin\cordova npm err! fetch failed https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz npm warn retry 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 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, semver@2.0.11, unorm@1.3.3, shelljs@0.3.0, dep-graph@1.1.0, d8@0.4.4, rc@0.5.2, through2@0.6.3, npmconf@0.1.16, glob@4.0.6, xcode@0.6.7, init-package-json@1.3.0, elementtree@0.1.5, request@2.47.0, tar@1.0.2, plist@1.1.0, npm@1.3.4, 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 Ôö£ÔöÇÔöÇ underscore@1.7.0 Ôö£ÔöÇÔöÇ ncp@0.4.2 Ôö£ÔöÇÔöÇ crc@3.2.1 Ôö£ÔöÇÔöÇ async@0.9.0 Ôö£ÔöÇÔöÇ q@1.0.1 Ôö£ÔöÇÔöÇ semver@4.3.1 Ôö£ÔöÇÔöÇ shelljs@0.2.6 Ôö£ÔöÇÔöÇ cross-spawn@0.2.3 (lru-cache@2.5.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) Ôö£ÔöÇÔöÇ optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.10) Ôö£ÔöÇÔöÇ 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) Ôö£ÔöÇÔöÇ form-data@0.1.4 (mime@1.2.11, combined-stream@0.0.7) Ôö£ÔöÇÔöÇ 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, debug@1.0.4, finalhandler@0.1.0) Ôö£ÔöÇÔöÇ 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, qs@0.5.6, noptify@0.0.3) Ôö£ÔöÇÔöÇ xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.6.2) Ôö£ÔöÇÔöÇ unzip@0.1.9 (setimmediate@1.0.2, pullstream@0.4.1, match-stream@0.0.2, readable-stream@1.0.33, binary@0.3.0, fstream@0.1.31) Ôö£ÔöÇÔöÇ 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, oauth-sign@0.5.0, tunnel-agent@0.4.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, http-signature@0.10.1, form-data@0.2.0, hawk@1.1.1, bl@0.9.4) Ôö£ÔöÇÔöÇ npm@2.1.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) Ôö£ÔöÇÔöÇ archiver@0.5.1 (lodash@2.4.1, readable-stream@1.1.13, lazystream@0.1.0, zip-stream@0.1.4, file-utils@0.1.5) Ôö£ÔöÇÔöÇ vinyl-fs@0.3.7 (graceful-fs@3.0.6, lodash@2.4.1, vinyl@0.4.6, mkdirp@0.5.0, strip-bom@1.0.0, through2@0.6.3, glob-stream@3.1.18, glob-watcher@0.0.6) ÔööÔöÇÔöÇ 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, tildify@1.0.0, orchestrator@0.3.7, liftoff@0.12.1, chalk@0.5.1, gulp-util@3.0.4) 

can please me?

edit: tried downgrade node 0.10 run cmd administrator, still doesn't work:

c:\users\basti\desktop>npm install -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 bundled npm@1.3.4, 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) 

well, actually, want give comment question. because have low reputation, means can't give comment you.

if have trouble npm on windows. suggest take common errors of npm on wiki here. problem, please make sure using internet connection along proxy or not. if using it, please command npm config set proxy. found same problem on stackoverflow , solution is:

use

npm config set registry http://registry.npmjs.org/

so npm requests http url instead of https.

and try same npm install command.

don't forget clear cache doing npm cache clean.

although, way can solve problem. should consider security. way not safe way because can lead security problem since https not used here. don't recommend use on production (thanks @ivarni pointing out).


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -