• npm i 报错 gifsicle pre-build test failed


    1.ping raw.githubusercontent.com

    PS C:\Users\Administrator> ping raw.githubusercontent.com
    Ping 請求找不到主機 raw.githubusercontent.com。請檢查該名稱,然後重試。
    

    2.1 修改hosts檔案,增加以下設定
    52.74.223.119 github.com
    192.30.253.119 gist.github.com
    54.169.195.247 api.github.com
    185.199.111.153 assets-cdn.github.com
    151.101.76.133 raw.githubusercontent.com
    151.101.76.133 gist.githubusercontent.com
    151.101.76.133 cloud.githubusercontent.com
    151.101.76.133 camo.githubusercontent.com
    151.101.76.133 avatars0.githubusercontent.com
    151.101.76.133 avatars1.githubusercontent.com
    151.101.76.133 avatars2.githubusercontent.com
    151.101.76.133 avatars3.githubusercontent.com
    151.101.76.133 avatars4.githubusercontent.com
    151.101.76.133 avatars5.githubusercontent.com
    151.101.76.133 avatars6.githubusercontent.com
    151.101.76.133 avatars7.githubusercontent.com
    151.101.76.133 avatars8.githubusercontent.com
    2.2 失败换成这个
    52.74.223.119 github.com
    192.30.253.119 gist.github.com
    54.169.195.247 api.github.com
    185.199.111.153 assets-cdn.github.com
    151.101.76.133 raw.githubusercontent.com
    3.npm cache clean -f
    4.ping raw.githubusercontent.com

    PS C:\Users\Administrator> ping raw.githubusercontent.com
    
    正在 Ping raw.githubusercontent.com [151.101.76.133] 具有 32 位元組的數據:
    來自 151.101.76.133 的回覆 回復: 位元組=32 時間=197ms TTL=51
    來自 151.101.76.133 的回覆 回復: 位元組=32 時間=196ms TTL=51
    來自 151.101.76.133 的回覆 回復: 位元組=32 時間=201ms TTL=51
    
  • 相关阅读:
    计算机网络之应用层面试题
    http传输为什么是采用TCP传输
    黑客常见攻击方法与防护方法
    设置tomcat允许跨域
    ES6新特性详解
    【HarmonyOS】ArkUI - 向左/向右滑动删除
    微信小程序开发旅游服务网站+后台管理系统|前后分离VUE
    分布式搜索———黑马旅游
    三种常见的特征选择方法
    [附源码]计算机毕业设计JAVA家乡旅游文化推广系统
  • 原文地址:https://blog.csdn.net/Stevetagelian/article/details/139724106