PS D:\Dev\vant\vant-demo\vant-weapp\base> npm -v
9.8.1
PS D:\Dev\vant\vant-demo\vant-weapp\base> npm i
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://registry.npm.qima-inc.com/@vant/weapp/download/@vant/weapp-1.0.0.tgz failed, reason: connect ETIMEDOUT 10.11.1.51:80, reason: connect ETIMEDOUT 10.11.1.51:80
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'
如题:
PS D:\Dev\vant\vant-demo\vant-weapp\base> npm -v 9.8.1 PS D:\Dev\vant\vant-demo\vant-weapp\base> npm i npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! network request to http://registry.npm.qima-inc.com/@vant/weapp/download/@vant/weapp-1.0.0.tgz failed, reason: connect ETIMEDOUT 10.11.1.51:80, reason: connect ETIMEDOUT 10.11.1.51:80 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'
详见下图。