vue error code ETIMEDOUT,network tunneling socket could not be established, cause=connect ETIMEDOUT

异常:

network tunneling socket could not be established, cause=connect ETIMEDOUT 16.85.88.10:8080
C:\Users\zhiqi.shao>npm show vue-cli
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=connect ETIMEDOUT 16.85.88.10:8080
npm ERR! network This is a problem 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


   ╭───────────────────────────────────────╮
   │                                       │
   │   Update available 6.14.117.9.0    │
   │      Run npm i -g npm to update       │
   │                                       │
   ╰───────────────────────────────────────╯


npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\zhiqi.shao\AppData\Roaming\npm-cache\_logs\2021-04-11T04_43_37_300Z-debug.log

C:\Users\zhiqi.shao> npm i -g npm
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npm.taobao.org/npm failed, reason: connect ETIMEDOUT 16.85.88.10:8080
npm ERR! network This is a problem 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! A complete log of this run can be found in:
npm ERR!     C:\Users\zhiqi.shao\AppData\Roaming\npm-cache\_logs\2021-04-11T04_46_27_360Z-debug.log

解决办法:之前是不是配置过代理。。。。

C:\Users\zhiqi.shao>npm config delete proxy
C:\Users\zhiqi.shao>npm config set https-proxy
C:\Users\zhiqi.shao>npm show vue-cli
npm WARN invalid config https-proxy=""
npm WARN invalid config Must be a full url with http://
npm WARN invalid config https-proxy=""
npm WARN invalid config Must be a full url with http://
{
  name: vue-cli,
  description: A simple CLI for scaffolding Vue.js projects.,
  dist-tags: { latest: 2.9.6 },
  maintainers: [ rem <shinjisays@gmail.com>, zigomir <zigomir@gmail.com> ],
  time: {
    modified: 2019-07-16T07:17:20.000Z,
    created: 2015-12-26T23:12:03.219Z,
    2.9.6: 2018-06-05T04:50:34.422Z,
    2.9.5: 2018-05-31T18:01:33.799Z,
    2.9.4: 2018-05-30T18:09:52.110Z,
    2.9.3: 2018-02-05T03:36:33.265Z,
    2.9.2: 2017-11-30T14:51:24.840Z,
    2.9.1: 2017-10-02T03:08:59.537Z,
    2.9.0: 2017-10-02T03:04:23.436Z,
    2.8.2: 2017-05-16T01:41:23.480Z,
    2.8.1: 2017-01-30T14:24:47.477Z,
    2.8.0: 2017-01-18T15:44:34.224Z,
    2.7.0: 2017-01-02T20:02:21.263Z,
    2.6.0: 2016-12-20T19:06:11.576Z,
    2.5.1: 2016-11-16T03:11:41.414Z,
    2.5.0: 2016-11-05T19:39:11.395Z,
    2.4.0: 2016-09-28T23:06:17.955Z,
    2.3.1: 2016-09-06T01:58:16.171Z,
    2.2.0: 2016-08-16T19:28:47.405Z,
    2.1.1: 2016-07-27T02:17:46.419Z,
    2.1.0: 2016-05-09T16:11:30.773Z,
    2.0.4: 2016-05-04T16:53:14.409Z,
    2.0.3: 2016-04-27T05:21:14.653Z,
    2.0.2: 2016-04-09T07:11:49.967Z,
    2.0.1: 2016-04-09T06:38:15.002Z,
    2.0.0: 2016-04-09T01:22:06.801Z,
    1.4.0: 2016-01-26T17:09:44.727Z,
    1.3.0: 2016-01-14T22:33:11.940Z,
    1.2.0: 2016-01-13T18:04:20.592Z,
    1.1.3: 2016-01-11T20:32:44.292Z,
    1.1.2: 2016-01-11T16:08:43.466Z,
    1.1.1: 2016-01-04T03:35:23.685Z,
    1.1.0: 2015-12-29T18:28:33.057Z,
    1.0.3: 2015-12-28T21:01:07.092Z,
    1.0.2: 2015-12-28T16:52:31.086Z,
    1.0.1: 2015-12-27T01:13:20.639Z,

 

vue error code ETIMEDOUT,network tunneling socket could not be established, cause=connect ETIMEDOUT

上一篇:JS哪些操作会造成内存泄露?


下一篇:PHP设计模式—状态模式