npm安装淘宝映像报npm ERR!

具体如下:

npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npm.taobao.org/mkdirp failed, reason: connect ETIMEDOUT 61.160.228.203:443
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'

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

npm config set proxy false

2.清除缓存

npm cache clean

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

npm ERR! As of npm@5, the npm cache self-heals from corruption issues
npm ERR!   by treating integrity mismatches as cache misses.  As a result,
npm ERR!   data extracted from the cache is guaranteed to be valid.  If you
npm ERR!   want to make sure everything is consistent, use `npm cache verify`
npm ERR!   instead.  Deleting the cache can only make npm go slower, and is
npm ERR!   not likely to correct any problems you may be encountering!
npm ERR!
npm ERR!   On the other hand, if you're debugging an issue with the installer,
npm ERR!   or race conditions that depend on the timing of writing to an empty
npm ERR!   cache, you can use `npm install --cache /tmp/empty-cache` to use a
npm ERR!   temporary cache instead of nuking the actual one.
npm ERR!
npm ERR!   If you're sure you want to delete the entire cache, rerun this command
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 https://registry.npm.taobao.org

查看上面配置的配置信息

npm config list

npm ERR code ETIMEDOUT npm ERR syscall connect npm ERR errno ETIMEDOUT npm ERR network reques...相关推荐

  1. npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file

    npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file ...

  2. npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\package.jsonnpm ERR! code ENOENT n

    npm run dev时报错 npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\...\Desktop\...系统\p ...

  3. npm ERR! code ENOENT npm ERR! syscall open npm ERR! path E:\jd\pro1\ka-mrm-jd_intern\package.json np

    描述: 做jest测试的时候遇到执行npm test报错 npm ERR! code ENOENT npm ERR! syscall open npm ERR! path E:\jd\pro1\ka- ...

  4. vue环境配置问题cmd指令报错 npm ERR! code EPERMnpm ERR! syscall mkdir

    配置vue环境 npm install -g cnpm --registery=https://registery.npm.taobao.org npm ERR! code EPERM npm ERR ...

  5. npm install 报错(npm ERR! errno: -4048, npm ERR! code: ‘EPERM‘, npm ERR! syscall: ‘unlink‘,)解决方法

    npm install 报错 npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', 用下面的方式测试一下 ...

  6. npm ERR! code ENOENTnpm ERR! syscall open

    新建了一个vue项目,终端npm install时报错 npm ERR! code ENOENT npm ERR! syscall open npm ERR! path D:\Workspaces\y ...

  7. npm ERR code ENOENT npm ERR syscall open npm ERR path CUserspackage.jsonnpm ERR code ENOENT n

    npm run dev时报错 npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:Users...Desktop...系统packag ...

  8. npm ERR code ENOENT npm ERR syscall open 错误解决

    启动myvue时,新手常犯错 E:Web学习ideaue>npm run dev npm ERR! code ENOENT npm ERR! syscall open npm ERR! path ...

  9. Windows安装npm淘宝镜像npm ERR! errno -4048 npm ERR! code EPERM npm ERR! syscall unlink

    [版权所有,文章允许转载,但须以链接方式注明源地址,否则追究法律责任] [创作不易,点个赞就是对我最大的支持] 前言 仅作为学习笔记,供大家参考 总结的不错的话,记得点赞收藏关注哦! 一.报错信息 p ...

  10. errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.

    npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs. ...

最新文章

  1. Windows下使用Visual Studio自带的MSVC,命令行编译C/C++程序
  2. mxnet与pytorch比较 bn层
  3. c#自定义Json类
  4. RabbitMQ工作线程代码
  5. MOCTF-Web-登录就对了
  6. Arduino从DHT11读取温湿度数据并显示在1602LCD
  7. 【CF487E】Tourists【圆方树】【树链剖分】【multiset】
  8. c语言数字和字母排序,C# 数字和字母的混合排序
  9. AxWebBrowser
  10. php xml cdata 解析,![CDATA[文本内容]]代表的意思
  11. 科学计算机怎么直接显示10的多少次方,科学计算器怎么开n次方
  12. Java 百度ocr文字识别-发票识别,并在页面显示信息
  13. web移动开发总结(六)
  14. Web测试中定位bug方法
  15. 如何拿到9家大厂的前端校招offer
  16. 银河麒麟下安装ftp服务
  17. 如何在输入特殊符号,例如角度“∠”
  18. 《情感分析、挖掘观点、情感和情绪》1
  19. ps2021一键换天空教程,来看看吧
  20. selenium 安装教程

热门文章

  1. 域名注册好了怎么使用 注册域名后需要备案吗
  2. 美团笔试题(5)考试策略
  3. 固体发动机内弹道matlab,固体火箭发动机内弹道性能的仿真研究
  4. 软件测试工程师面试如何做好自我介绍?月薪30k大鸟教你回答
  5. ntag213和215有什么区别_NTAG213、NTAG215和NTAG216NFC标签
  6. Win系统 - Windows10 系统恢复语言栏位置的方法(二)
  7. Digispark(ATTINY85) 微型开发板驱动安装与开发环境配置教程
  8. 硬件设计1---什么是硬件工程师?
  9. JsonPath 解析Josn字符串
  10. 好用又好玩的微信小程序大全