npm install 失败。
报错: request to https://registry.npm.taobao.org/request failed, reason: getaddrinfo ENOTFOUND server

原因:请求不到淘宝镜像
解决方式:


① 查看当前镜像地址 nmp config get install
② 查看当前的代理,如果返回值不为null,还要继续往下排查
③ 查看当前配置的https 代理
④ 设置代理为null
⑤ 设置https代理为null

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐