当前位置:网站首页>npm、nrm两种方式查看源和切换镜像
npm、nrm两种方式查看源和切换镜像
2022-08-02 05:18:00 【m0_67393413】
一、使用npm查看当前源、切换淘宝镜像、切换官方源
(1)npm查看当前源:
npm get registry
(2)npm设置淘宝镜像源:
npm config set registry http://registry.npm.taobao.org
(3)npm设置官方源:
npm config set registry http://www.npmjs.org
二、使用nrm查看和切换镜像
1、首先通过npm安装nrm:
npm install -g nrm
2、通过nrm查看和切换镜像源(命令):nrm ls
注意:下面的 * 表示当当前正在使用的源,
* npm -------- https://registry.npmjs.org/
yarn ------- https://registry.yarnpkg.com/
cnpm ------- http://r.cnpmjs.org/
taobao ----- https://registry.npm.taobao.org/
nj --------- https://registry.nodejitsu.com/
npmMirror -- https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/
3、如果想要使用某一个,直接use,比如我要使用淘宝镜像的源:
nrm use taobao
出现下面提示就说明切换成功了!
4、如果出现下面的爆红情况:可能是没有全局安装nrm,npm install -g nrm。全局安装记得加-g
如有问题,欢迎指正!!!
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
猜你喜欢
pytorch basic operations: classification tasks using neural networks
zabbix邮件报警和微信报警
VMTK环境配置记录
Install and use Google Chrome
Point Density-Aware Voxels for LiDAR 3D Object Detection 论文笔记
ATM系统
leetcode一步解决链表合并问题
25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
Machine learning -- - theory of support vector machine (SVM)
Thread Basics (1)
随机推荐
coredns介绍
Leetcode parentheses matching problem -- 32. The longest parentheses effectively
Linux CentOS8安装Redis6
Smart people's game improvement: Chapter 3, Lesson 2: "Number of Tongtong" (number)
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续
pytorch基本操作:使用神经网络进行分类任务
【OpenCV从入门到实践】图像处理技术[像素](全网最详细)
科技赋能拉萨之“肺”,华为助力拉鲁湿地智慧管理守护绿水青山
flex布局(弹性布局)
面试官:设计“抖音”直播功能测试用例吧
物联网如何改变城市运行效率
Shuttle + Alluxio 加速内存Shuffle起飞
淘系资深工程师整理的300+项学习资源清单(2021最新版)
51单片机外设篇:点阵式LCD
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
kubernetes 亲和、反亲和、污点、容忍
为什么4个字节的float要比8个字节的long大呢?
Machine learning -- - theory of support vector machine (SVM)
There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?