编程 淘宝npm镜像使用方法

2024-11-18 23:50:48 +0800 CST views 3830

今晚不知道怎么回事npm老是安装不了 一直卡着等了一个多小时未果。于是安装淘宝的npm

淘宝 npm 地址: http://npm.taobao.org/

#1.临时使用

npm --registry https://registry.npm.taobao.org install express

#2.持久使用

npm config set registry https://registry.npm.taobao.org

配置后可通过下面方式来验证是否成功

npm config get registry

npm info express

3.通过cnpm使用

npm install -g cnpm --registry=https://registry.npm.taobao.org

使用

cnpm install express

22.png

复制全文 生成海报 npm 开发 工具 JavaScript

推荐文章

网络数据抓取神器 Pipet
2024-11-19 05:43:20 +0800 CST
使用 sync.Pool 优化 Go 程序性能
2024-11-19 05:56:51 +0800 CST
设置mysql支持emoji表情
2024-11-17 04:59:45 +0800 CST
维护网站维护费一年多少钱?
2024-11-19 08:05:52 +0800 CST
Redis和Memcached有什么区别?
2024-11-18 17:57:13 +0800 CST
Go 接口:从入门到精通
2024-11-18 07:10:00 +0800 CST
程序员茄子在线接单