1、at process._tickCallback (internal/process/next_tick.js:188:7)  npm ERR! message: 'request to https://registry.npm.taobao.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1080',

1)报错信息大概如下:

 1 E:\WebStormFile\labSystem>npm i -g vue-cli
 2 npm ERR! code ECONNREFUSED
 3 npm ERR! errno ECONNREFUSED
 4 npm ERR! FetchError: request to https://registry.npm.taobao.org/vue-cli failed, reason:
 5  connect ECONNREFUSED 127.0.0.1:1080
 6 npm ERR!     at ClientRequest.req.on.err (E:\ProgramFiles\nodejs\node_modules\npm\node_
 7 modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:
 8 68:14)
 9 npm ERR!     at emitOne (events.js:116:13)
10 npm ERR!     at ClientRequest.emit (events.js:211:7)
11 npm ERR!     at onerror (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pacote\no
12 de_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\ind
13 ex.js:106:9)
14 npm ERR!     at callbackError (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pac
15 ote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-ba
16 se\index.js:126:5)
17 npm ERR!     at <anonymous>
18 npm ERR!     at process._tickCallback (internal/process/next_tick.js:188:7)
19 npm ERR!  { FetchError: request to https://registry.npm.taobao.org/vue-cli failed, reas
20 on: connect ECONNREFUSED 127.0.0.1:1080
21 npm ERR!     at ClientRequest.req.on.err (E:\ProgramFiles\nodejs\node_modules\npm\node_
22 modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:
23 68:14)
24 npm ERR!     at emitOne (events.js:116:13)
25 npm ERR!     at ClientRequest.emit (events.js:211:7)
26 npm ERR!     at onerror (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pacote\no
27 de_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\ind
28 ex.js:106:9)
29 npm ERR!     at callbackError (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pac
30 ote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-ba
31 se\index.js:126:5)
32 npm ERR!     at <anonymous>
33 npm ERR!     at process._tickCallback (internal/process/next_tick.js:188:7)
34 npm ERR!   message: 'request to https://registry.npm.taobao.org/vue-cli failed, reason:
35  connect ECONNREFUSED 127.0.0.1:1080',
36 npm ERR!   type: 'system',
37 npm ERR!   errno: 'ECONNREFUSED',
38 npm ERR!   code: 'ECONNREFUSED',
39 npm ERR!   stack: 'FetchError: request to https://registry.npm.taobao.org/vue-cli faile
40 d, reason: connect ECONNREFUSED 127.0.0.1:1080\n    at ClientRequest.req.on.err (E:\\Pr
41 ogramFiles\\nodejs\\node_modules\\npm\\node_modules\\pacote\\node_modules\\make-fetch-h
42 appen\\node_modules\\node-fetch-npm\\src\\index.js:68:14)\n    at emitOne (events.js:11
43 6:13)\n    at ClientRequest.emit (events.js:211:7)\n    at onerror (E:\\ProgramFiles\\n
44 odejs\\node_modules\\npm\\node_modules\\pacote\\node_modules\\make-fetch-happen\\node_m
45 odules\\https-proxy-agent\\node_modules\\agent-base\\index.js:106:9)\n    at callbackEr
46 ror (E:\\ProgramFiles\\nodejs\\node_modules\\npm\\node_modules\\pacote\\node_modules\\m
47 ake-fetch-happen\\node_modules\\https-proxy-agent\\node_modules\\agent-base\\index.js:1
48 26:5)\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:
49 188:7)' }
50 npm ERR!
51 npm ERR! If you are behind a proxy, please make sure that the
52 npm ERR! 'proxy' config is set properly.  See: 'npm help config'
53 
54 npm ERR! A complete log of this run can be found in:
55 npm ERR!     E:\ProgramFiles\nodejs\node_cache\_logs\2019-11-20T07_33_07_386Z-debug.log
View Code

相关文章: