当前位置:网站首页>cnpm|npm设置镜像地址操作
cnpm|npm设置镜像地址操作
2022-04-21 18:41:00 【疯子的梦想@】
cnpm|npm设置镜像地址操作
npm
1.查看当前的镜像源
npm config get registry
2.修改当前的镜像源为淘宝镜像源
npm config set registry https://registry.npm.taobao.org
3.查看当前npm信息
npm -v
cnpm
1.查看当前的镜像源
cnpm config get registry
2.修改当前的镜像源为淘宝镜像源
cnpm config set registry https://registry.npm.taobao.org
3.查看当前cnpm信息
cnpm -v
使用npm|cnpm安装包
1.npm|cnpm安装新包时的参数
-g 即global全局安装,并同时将该包所在路径写入系统环境变量,以便全局调用。
-S 同--save,保存,写入package.json中的dependencies,这类依赖会发布到生产环境。
-D 同--save-dev,写入package.json中的devDependencies,这类依赖只用于开发环境(如用于转译语法的babel插件,webpack的打包插件等)。
版权声明
本文为[疯子的梦想@]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_48681463/article/details/124006560
边栏推荐
- [dai4] the entry node of the link in jz23 linked list
- 英雄出场王 C语言
- 统计组成的四位数 C语言
- Which immortal wrote 421 pages of advanced notes on MySQL, covering all MySQL technologies! It's so sweet
- 业绩最好 C语言
- Target penetration exercise 78 Thoth Tech
- Where is the initial password for MySQL installation?
- Potential value of zero knowledge proof
- CDF global survey: stagnant software delivery performance
- Advanced formula 46 of C language: function and macro analysis
猜你喜欢

不能再简单的意向锁

How to use serialization and deserialization of JSON in golang

Target penetration exercise 69-dc1

Target penetration exercise 77-dc9
Building local canal middleware for data migration -- Inspiration from cache breakdown

CDF global survey: stagnant software delivery performance

Don't look for it. This is the clearest article on microservices so far! No one

The Renaissance of digital art, the exploration and rise of Digital Collections

CVPR 2022 | 基于Transformer的新型人脸属性编辑框架TransEditor

win10 uwp 访问解决方案文件
随机推荐
【小程序】支付宝小程序自定义下拉刷新组件
Automated testing of Android wechat applet for automated testing of dry goods | app
How does PHP remove the first number
英雄出场王 C语言
Goodbye SharedPreferences, hello mmkv!
C language operator summary
Appium principle and jsonwp protocol analysis of automatic testing of dry goods app
年末我的Android面试复盘
CVPR2022 Oral | 多模态学习中的贡献不平衡问题
Assignment and value of WPF RichTextBox
[small program] Alipay applet custom pull down refresh component
金鱼哥RHCA回忆录:RH358管理DNS和DNS服务器--DNS服务概述
Target penetration exercise 74-dc6
曾經被爆買的產品又來了,求穩買他准沒錯
Target penetration exercise 69-dc1
matlab:e的计算方法
Lap library installation
Redis三种特殊数据类型——Hyperloglog基数统计
初始redis基础了解
How to test Android WebView for automated testing of dry goods app