当前位置:网站首页>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
出现下面提示就说明切换成功了!
边栏推荐
- 安全20220718
- The application and practice of mid-to-platform brand advertising platform
- Win10 CUDA CUDNN installation configuration (torch paddlepaddle)
- MySQL数据库必会的增删查改操作(CRUD)
- 开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源
- [AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
- RESTful api interface design specification
- volatile内存语义以及实现 -volatile写和读对普通变量的影响
- $parent/$children 与 ref
- three.js 制作3D相册
猜你喜欢
马斯克对话“虚拟版”马斯克,脑机交互技术离我们有多远
三子棋的代码实现
exsl文件预览,word文件预览网页方法
The third is the code to achieve
LocalDate addition and subtraction operations and comparison size
WeChat applet uses cloud functions to update and add cloud database nested array elements
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
idea工程明明有依赖但是文件就是显示没有,Cannot resolve symbol ‘XXX‘
《DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction》论文笔记
$attrs/$listeners
随机推荐
开源社区三十年 | 2022开放原子全球开源峰会开源社区三十年专题活动圆满召开
MySQL数据库备份
MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
【AUTOSAR-RTE】-4-Port and Interface and Data Type
Just debuted "Fight to Fame", safety and comfort are not lost
RESTful api接口设计规范
Redis 统计用户新增和留存
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
问题1:给你1-10的列表,实现列表输出,单数在左边,双数在右边。
C语言表白代码?
Redis uses LIST to cache the latest comments
MySQL数据库必会的增删查改操作(CRUD)
Daily practice of LeetCode - palindrome structure of OR36 linked list
产学研用 共建开源人才生态 | 2022开放原子全球开源峰会教育分论坛圆满召开
Recursive implementation of the Tower of Hanoi problem
ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
Redis 使用LIST做最新评论缓存
【论文阅读】Mastering the game of Go with deep neural networks and tree search
(四)递归、可变参数、访问修饰符、理解 main 方法、代码块
VScode+ESP32快速安装ESP-IDF插件