<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                `There appears to be trouble with your network connection. Retrying` 下載包太大,導致超時。 如果有網速比較快的代理服務器的話, 可以配置http和https訪問的代理。 1. 系統層級設置網絡代理。 2. 使用yarn 設置代理服務器 3. 增加yarn 下載包的超時時間設置 4. npm 5. 切換下載鏡像源 ## 設置網絡代理 #### Linux 中設置代理 1. 在 `/etc/apt/apt.conf` 或者 `/etc/environment` 配置 ``` Acquire::http::proxy "http://username:password@proxy:port"; Acquire::https::proxy "http://username:password@proxy:port"; Acquire::ftp::proxy "http://username:password@proxy:port"; ``` 2. 在.bashrc中配置代理 ``` export http_proxy="http://username:password@proxy:port"; export https_proxy="http://username:password@proxy:port"; export HTTPS_PROXY="http://username:password@proxy:port" export HTTP_PROXY="http://username:password@proxy:port" ``` ## yarn 設置網絡代理 ``` yarn config set proxy http://username:password@host:port yarn config set https-proxy http://username:password@host:port ``` ## 增加yarn 下載包的超時時間設置 `yarn install --network-timeout=100000` 這里設置為100秒 ## npm 設置代理 ``` npm config set registry http://registry.npmjs.org/ npm config set proxy http://username:mypassword@proxy:port npm config set https-proxy http://username:mypassword@proxy:port npm config set strict-ssl false npm --proxy http://myusername:mypassword@proxy.us.somecompany:8080 --without-ssl --insecure -g install ``` ## 切換下載鏡像源 ``` yarn config set registry https://registry.npm.taobao.org ``` 通過 `npm config ls` 可以查看是否更改成功。 備注: 如果有多個鏡像源, 可以使用nrm 進行管理, nrm 是一個 npm 源管理器 1. 全局安裝nrm: `npm install nrm -g` 2. 查看鏡像源: `nrm ls` 3. 切換鏡像源: `nrm use npm` 4. 安裝需要的模塊: `npm install <package-name>` 5. 如果需要安裝全部依賴: `npm install` ## 方法 1.單個依賴下載 `yarn add xxx -W` `yarn add <yourPackage> --network-timeout 100000` 3. 多跑幾次 4. 更換鏡像 默認的registry 是 https://registry.yarnpkg.com, 更換成淘寶的 https://registry.npm.taobao.org ``` yarn config list yarn config delete proxy npm config rm proxy npm config rm https-proxy yarn config set registry https://registry.npm.taobao.org ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看