npm 資源庫映象

2021-09-06 04:41:54 字數 671 閱讀 9066

@mashihua 同學在cnode新聞組發布了他維護的npm映象源,速度很快!

以下是郵件內容:

$ npm --registry "" install express
或下面的命令:

$ env npm_config_registry="" npm install express
如果你想把它設成預設的資源庫,可用下面的命令:

$ npm config set registry ""
ps: 還有乙個資源映象

由 senmiao 同學維護。

@mashihua 同學還分享了搭建經驗:

大家可以檢視 如何安裝 npm 資源庫。安裝比較簡單,最大的問題在於 couchdb 上。如果得到這樣的錯誤:

請配置 /usr/local/etc/couchdb/local.ini 裡 httpd 的選項 secure_rewrites = false

當design文件和replication在同乙個庫時需要認證。可對registry這個資源採用使用者名稱和密碼認證的方式,http://user:pwd@localhost/registry 。因為可能碰到replication時,會返回401錯誤。

可參考:

/issues/19

npm 資源庫映象

mashihua 同學在cnode新聞組發布了他維護的npm映象源,速度很快!以下是郵件內容 npm registry install express或下面的命令 env npm config registry npm install express如果你想把它設成預設的資源庫,可用下面的命令 np...

NPM本地資源庫搭建

node.js 版本不要使用10.x,建議使用v8.15.1版本!一 sinopia搭建 npm install g sinopia 安裝好之後執行 sinopia,訪問localhost 4873 出現這個頁面說明安裝成功,網上有一種用pm2啟動sinopia的方式,我沒實現,用pm2啟動應該是比...

Docker啟動失敗以及資源庫映象問題

job for docker.service failed because the control process exited with error code.see systemctl status docker.service and journalctl xe for details.1.刪...