当前位置:网站首页>View source and switch mirrors in two ways: npm and nrm
View source and switch mirrors in two ways: npm and nrm
2022-08-02 06:44:00 【m0_67393413】
First, use npm to view the current source, switch Taobao mirror, switch official source
(1) npm view the current source:
npm get registry
(2) npm set Taobao mirror source:
npm config set registry http://registry.npm.taobao.org
(3) npm set the official source:
npm config set registry http://www.npmjs.org
Second, use nrm to view and switch mirrors
1. First install nrm through npm:
npm install -g nrm
2. View and switch mirror sources through nrm (command): nrm ls
Note: The * below indicates when the source is currently in use,
* 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. If you want to use a certain one, use it directly. For example, I want to use the source of Taobao mirror:
nrm use taobao
The following prompt appears, indicating that the switch is successful!
4. If the following popular situation occurs: it may be that nrm is not installed globally, npm install -g nrm.Remember to add -g
If you have any questions, please correct me!!!
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- The international top conference OSDI included Taobao system papers for the first time, and the device-cloud collaborative intelligence was recommended by the keynote speech of the conference
- 25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
- [OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
- Different ways of shell scripting
- Redis(十一) - 异步优化秒杀
- [C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
- C# 编码规范手册
- 回文串求解的进阶方法
- npm、cnpm的安装
- 关于鸿蒙系统 JS UI 框架源码的分析
猜你喜欢
随机推荐
淘系资深工程师整理的300+项学习资源清单(2021最新版)
Install and use Google Chrome
HCIP BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
保证家里和企业中的WIFI安全-附AC与AP组网实验
机器学习——支持向量机原理
Contents of encoding-indexes.js file printed with Bluetooth:
BGP实验(路由反射器,联邦,路由优化)
Redis database
BGP+MPLS综合实验
软件测试在职2年跳槽4次,你还在怪老板不给你涨薪?
Polar Parametrization for Vision-based Surround-View 3D Detection 论文笔记
Nacos注册中心的部署与用法详细介绍
BGP experiment (route reflector, federation, route optimization)
点云旋转到参考坐标系方向(最小方向包围盒方法)
APT + Transform 实现多模块应用Application生命周期分发
MySQL联合查询(多表查询)
[Cartoon] 2021 full score programmer behavior comparison table (latest version)
【OpenCV从入门到实践】图像处理技术[像素](全网最详细)
The virtual reality real estate display system foresees the future decoration effect in advance