无法使用npm ECONNRESET安装任何代理 [英] Can't install anything with npm ECONNRESET without proxy

查看:6629
本文介绍了无法使用npm ECONNRESET安装任何代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用node.js通过npm安装一些东西没有任何问题。现在我没有改变任何设置(Win8;没有代理,互联网正在工作),我不能安装任何东西(特别是cordova和离子)。
它只会抛出像我在代理后面的错误,但我不是。

  npm ERR! Windows_NT 6.3.9600 
npm ERR! argvC:\\Program Files\\\\
odejs\\\\
ode.exeC:\\Program Files\\\\
odejs\\ node_modules\\ npm\\bin\\\\
pm-cli.jsinstalli-gionic
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!网络读取ECONNRESET
npm错误! network这很可能不是npm本身的问题
npm ERR!网络并且与网络连接相关。
npm ERR!网络在大多数情况下,您是在代理后面或有坏的网络设置。
npm ERR! network
npm ERR!网络如果你在代理后面,请确保
npm错误!网络代理配置设置正确。参见:'npm help config'

npm ERR!请包含任何支持请求的以下文件:
npm ERR! D:\Web\dierechnungstimmt\\\
pm-debug.log

  npm WARN engine cordova-js@3.8.0:wanted:{node:〜0.10.x} :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将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.0.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/gaze/-/gaze-0.5.1.tgz
npm WARN重试将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/through2/-/through2-0.6.3.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.0.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/clone/-/clone-0.2.0.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
npm错误! fetch failed https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz
npm WARN retry将重试,最后一次尝试时出错:错误:读取ECONNRESET
C:\Users\Basti\AppData\Roaming\\\
pm\cordova - > C:\Users\Basti\AppData\Roaming\\\
pm\\\
ode_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将重试,最后一次尝试时出错:错误:读取ECONNRESET
C:\Users\Basti\AppData\Roaming\\\
pm\ionic - > C:\Users\Basti\AppData\Roaming\\\
pm\\\
ode_modules\ionic\bin\ionic
i@0.3.2 C:\Users\Basti\AppData\ Roaming\\\
pm\\\
ode_modules\i

cordova@4.3.0 C:\Users\Basti\AppData\Roaming\\\
pm\\\
ode_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-graph1.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\\\
pm\\\
ode_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
crossspawn@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)



任何人都可以帮助我吗?



编辑:
试图降级节点0.10以管理员身份运行cmd,但它仍然不起作用:

  C:\Users\Basti\桌面> npm install i -g cordova 
npm WARN引擎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与npm@1.3.4捆绑在一起,但是在打包的树中找不到捆绑包b $ b C:\Program Files(x86)\\\
odejs\cordova - > C:\Program Files(x86)\\\
odejs\\\
ode_modules\cordova\bin\cordova
i@0.3.2 C:\Program Files(x86)\\\
odejs\\\
ode_modules\i

cordova@4.3.0 C:\程序文件(x86)\\\
odejs\\\
ode_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,mime1.2.11,semver2.0.11,unorm1.3.3,rc0.5.2,shelljs0.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)


解决方案

实际上,我想对你的问题发表评论。



如果你在 npm 在Windows上。我建议你看一看常见的错误 npm 在wiki 此处。回到你的问题,请确保你使用互联网连接与代理或不。如果你使用它,请执行命令 npm config set proxy 。我在 Stackoverflow 上发现了相同的问题,解决方案是:


使用



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



,以便npm请求 http url而不是 https



,然后尝试相同的 npm install 命令。 >

不要忘记通过 npm cache clean 清除缓存。



虽然,这种方式可以解决问题。你应该考虑安全性。这种方式是不是安全的方式,因为它可能导致安全问题,因为 https 在这里不使用。我建议不要在生产中使用这个(感谢@ivarni指出这一点)。


I used node.js to install some things via npm without any problems. Now I changed nothing on my settings (Win8; no proxy, internet is working) and I can't install anything (especially cordova and ionic). It only throws errors like I'm behind a proxy, but 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 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\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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 will 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 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
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 anyone please help me?

EDIT: Tried to downgrade to node 0.10 an run cmd as administrator, but it still doesn't work:

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)

解决方案

Well, actually, I want to give a comment to your question. Because I have low reputation, it means I can't give a comment to you.

If you have a trouble with npm on Windows. I would suggest you take a look the common errors of npm on wiki here. Back to your problem, please make sure you are using internet connection along with proxy or not. If you are using it, please do command npm config set proxy. I found same problem on Stackoverflow and the solution is:

use

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

so that npm requests for http url instead of https.

and then try the same npm install command.

Don't forget to clear your cache by doing npm cache clean.

Although, this way can solve the problem. You should consider about the security. This way is not the safe way because it can lead to security problem since https is not used here. I recommend don't use this on production (thanks @ivarni for pointing this out).

这篇关于无法使用npm ECONNRESET安装任何代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆