收款定制开发npm ERR code ETIMEDOUT npm ERR syscall connect npm ERR errno ETIMEDOUT npm ERR network reques...

npm收款定制开发安装淘宝映像报npm ERR!

具体如下:

  1. npm ERR! code ETIMEDOUT
  2. npm ERR! syscall connect
  3. npm ERR! errno ETIMEDOUT
  4. npm ERR! network request to https://registry.npm.taobao.org/mkdirp failed, reason: connect ETIMEDOUT 61.160.228.203:443
  5. npm ERR! network This is a problem related to network connectivity.
  6. npm ERR! network In most cases you are behind a proxy or have bad network settings.
  7. npm ERR! network
  8. npm ERR! network If you are behind a proxy, please make sure that the
  9. npm ERR! network 'proxy' config is set properly. See: 'npm help config'

解决办法:
1.设置代理关闭

npm config set proxy false

2.清除缓存

npm cache clean

若是清除缓存时报错,如下所示:

  1. npm ERR! As of npm@5, the npm cache self-heals from corruption issues
  2. npm ERR! by treating integrity mismatches as cache misses. As a result,
  3. npm ERR! data extracted from the cache is guaranteed to be valid. If you
  4. npm ERR! want to make sure everything is consistent, use `npm cache verify`
  5. npm ERR! instead. Deleting the cache can only make npm go slower, and is
  6. npm ERR! not likely to correct any problems you may be encountering!
  7. npm ERR!
  8. npm ERR! On the other hand, if you're debugging an issue with the installer,
  9. npm ERR! or race conditions that depend on the timing of writing to an empty
  10. npm ERR! cache, you can use `npm install --cache /tmp/empty-cache` to use a
  11. npm ERR! temporary cache instead of nuking the actual one.
  12. npm ERR!
  13. npm ERR! If you're sure you want to delete the entire cache, rerun this command
  14. npm ERR! with --force.

就使用下面命令:

npm cache clean --force

若是显示
npm WARN using --force Recommended protections disabled.
那就说明需要降低npm的版本了,因为安装的npm版本过高
降低npm的命令使用如下

npm install npm@6.14.10 -g

最终设置淘宝镜像

npm config set registry 

查看上面配置的配置信息

npm config list

 

网站建设定制开发 软件系统开发定制 定制软件开发 软件开发定制 定制app开发 app开发定制 app开发定制公司 电商商城定制开发 定制小程序开发 定制开发小程序 客户管理系统开发定制 定制网站 定制开发 crm开发定制 开发公司 小程序开发定制 定制软件 收款定制开发 企业网站定制开发 定制化开发 android系统定制开发 定制小程序开发费用 定制设计 专注app软件定制开发 软件开发定制定制 知名网站建设定制 软件定制开发供应商 应用系统定制开发 软件系统定制开发 企业管理系统定制开发 系统定制开发