当前位置:网站首页>View source and switch mirrors in two ways: npm and nrm
View source and switch mirrors in two ways: npm and nrm
2022-07-31 04:30:00 【Prostitute the leader】
一、使用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
二、使用nrmView and switch mirrors
1、安装nvm,之后才可以使用nrm命令
Specifically how to install everyone can Baidu
2、通过nrmView and switch mirror sources(命令):nrm ls
注意:下面的 * 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,For example, I want to use the source of Taobao mirror:
nrm use taobao
The following prompt appears, indicating that the switch is successful!
边栏推荐
猜你喜欢
开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源
(五)final、抽象类、接口、内部类
聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开
MySQL基础操作
Port inspection steps - 7680 port analysis - Dosvc service
Go语学习笔记 - 处理超时问题 - Context使用 | 从零开始Go语言
Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held
"A daily practice, happy water problem" 1331. Array serial number conversion
Daily practice of LeetCode - 138. Copy a linked list with random pointers
高等数学---第九章二重积分
随机推荐
ClickHouse: Setting up remote connections
MySQL based operations
el-image tag doesn't work after binding click event
重磅 | 基金会为白金、黄金、白银捐赠人授牌
Explanation of
(五)final、抽象类、接口、内部类
BUG destroyer!!Practical debugging skills are super comprehensive
errno error code and meaning (Chinese)
WPF WPF 】 【 the depth resolution of the template
【C语言进阶】文件操作(一)
Two address pools r2 are responsible for managing the address pool r1 is responsible for managing dhcp relays
The BP neural network
Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined
【线性神经网络】softmax回归
No qualifying bean of type question
ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
Can't load /home/Iot/.rnd into RNG
interprocess communication
VScode+ESP32 quickly install ESP-IDF plugin