当前位置:网站首页>npm、nrm两种方式查看源和切换镜像
npm、nrm两种方式查看源和切换镜像
2022-07-31 04:16:00 【白嫖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
二、使用nrm查看和切换镜像
1、安装nvm,之后才可以使用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
出现下面提示就说明切换成功了!
边栏推荐
- Smartcom Programming Level 4 - Magic Academy Lesson 6
- The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
- $parent/$children and ref
- type_traits metaprogramming library learning
- pom文件成橘红色未加载的解决方案
- Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
- 进程间通信
- What is a system?
- $attrs/$listeners
- 递归实现汉诺塔问题
猜你喜欢
The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
ENSP,划分VLAN、静态路由,三层交换机综合配置
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源
[Swift]自定义点击APP图标弹出的快捷方式
马斯克对话“虚拟版”马斯克,脑机交互技术离我们有多远
Just debuted "Fight to Fame", safety and comfort are not lost
MATLAB/Simulink&&STM32CubeMX工具链完成基于模型的设计开发(MBD)(三)
MySQL based operations
The application and practice of mid-to-platform brand advertising platform
随机推荐
C language confession code?
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开
binom二项分布,
手把手实现图片预览插件(三)
Safety 20220712
重磅 | 基金会为白金、黄金、白银捐赠人授牌
ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
ClickHouse: Setting up remote connections
IDEA常用快捷键与插件
已解决:不小心卸载pip后(手动安装pip的两种方式)
Can't load /home/Iot/.rnd into RNG
The use of beforeDestroy and destroyed
SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
三子棋的代码实现
Notes on the establishment of the company's official website (6): The public security record of the domain name is carried out and the record number is displayed at the bottom of the web page
扫雷游戏(c语言写)
Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined