npm镜像切换大法
来源:互联网 发布:云计算板块平均市盈率 编辑:程序博客网 时间:2024/05/16 03:37
npm全称Node Package Manager,是node.js的模块依赖管理工具。由于npm的源在国外,所以国内用户使用起来各种不方便。下面整理出了一部分国内优秀的npm镜像资源,国内用户可以选择使用。
国内优秀npm镜像
1.淘宝npm镜像
- 搜索地址:http://npm.taobao.org/
- registry地址:http://registry.npm.taobao.org/
2.cnpmjs镜像
- 搜索地址:http://cnpmjs.org/
- registry地址:http://r.cnpmjs.org/
如何使用
有很多方法来配置npm的registry地址,下面根据不同情境列出几种比较常用的方法。以淘宝npm镜像举例:
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
原文链接戳这里
阅读全文
0 0
- npm镜像切换大法
- NPM 镜像切换
- npm切换镜像站点
- 整理:npm安装太慢,切换镜像方法
- 切换npm源为淘宝镜像(cnpm)
- npm 国内镜像
- 国内npm镜像
- npm 镜像设置
- npm镜像使用方法
- 淘宝 NPM 镜像
- NPM 镜像设置
- npm 淘宝镜像
- npm镜像地址
- NPM淘宝镜像
- 淘宝 NPM 镜像
- npm镜像使用手记
- npm镜像
- npm淘宝镜像
- runtime从入门到精通(二)—— 官方文档翻译
- android studio 运行中的一些小错误解决办法(持续更新中······)
- 配置yum源从镜像SO文件
- SCM+MLC/TLC NAND混合SSD性能探究
- java web面试技巧,数据库面试,java web轻量级开发面试教程
- npm镜像切换大法
- Linux基础练习一
- 神经网络中的激活函数-Sigmoid, ReLu, TanHyperbolic(tanh), softmax, softplus简述
- 连咸鱼都能学会的Java异步处理
- Android Binder设计与实现
- Struts2 请求参数验证
- 最后一波9.9元电子书秒杀,你真的不来看一看吗?
- runtime从入门到精通(三)—— runtime常用接口方法
- Python 元组