設定NPM Electron國內源

2021-10-06 06:23:19 字數 703 閱讀 2558

yarn config set registry 

yarn config set disturl

yarn config set electron_mirror

yarn config set registry

yarn config set disturl

yarn config set electron_mirror

注意:華為的映象比較坑,貌似有些最新的映象是沒有的,先嘗試了一下,踩坑後果斷棄用,建議用**的,後三條是設定**國內映象源的命令,開發electron的時候,設定了一下electron,這個最好還是用**的哈,不然electron可能安裝不上。

npm config set registry 

npm config set disturl

npm config set electron_mirror

npm config set registry

npm config set disturl

npm config set electron_mirror

注意:華為的映象比較坑,貌似有些最新的映象是沒有的,先嘗試了一下,踩坑後果斷棄用,建議用**的,後三條是設定**國內映象源的命令,開發electron的時候,設定了一下electron,這個最好還是用**的哈,不然electron可能安裝不上。

atom設定國內映象

給apm換乙個軟體源 atom的外掛程式實際上在npm上,npm的官方源在國內訪問起來是非常緩慢的。但是,國內有許多映象源可以使用,如 源 要設定apm使用的軟體源很簡單,執行下列命令 apm config set registry npm mirror url將上面的npm mirror url替...

cargo設定國內源

cargo的依賴庫的預設源用的是但國內很多網路訪問很慢 像python的pip和php的composer以及go都有國內的 或映象 rust國內也有映象源,中國科大的 設定cargo的國內映象源 source.crates io registry replace with ustc source.u...

python設定國內pip源

目錄 linux更改pip源 永久使用 一次使用 windows更改pip源 可供使用的幾個常用的國內源 清華 中科大 豆瓣 設定時可以設定一次性使用和永久使用 global index url 可以在使用pip的時候加引數 i 例 pip install package i 檢視在roaming資...