当前位置:网站首页>NPM淘宝镜像(最新版本)于2021-11-21 16:53:52发布新版本npm镜像[通俗易懂]
NPM淘宝镜像(最新版本)于2021-11-21 16:53:52发布新版本npm镜像[通俗易懂]
2022-07-31 14:24:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
2021-11-21 16:53:52 npm淘宝镜像更换新域名
新域名为淘宝 NPM 镜像
新版本使用镜像有以下两种方式:
1.你可以使用我们定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的 npm
:
$ npm install -g cnpm --registry=https://registry.npmmirror.com
2.或者你直接通过添加 npm
参数 alias
一个新命令:
alias cnpm="npm --registry=https://registry.npmmirror.com \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npmmirror.com/dist \
--userconfig=$HOME/.cnpmrc"
# Or alias it in .bashrc or .zshrc
$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npmmirror.com \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npmmirror.com/dist \
--userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/128460.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢
The 232-layer 3D flash memory chip is here: the single-chip capacity is 2TB, and the transmission speed is increased by 50%
技能大赛训练题:交换机的远程管理
SetoolKit使用指南
OAuth2:微服务权限校验Session共享
Sentinel流量控制
百度网盘安装在c盘显示系统权限限制的解决方法
ECCV 2022 | Robotic Interaction Perception and Object Manipulation
多智能体协同控制研究中光学动作捕捉与UWB定位技术比较
机器学习模型验证:被低估的重要一环
MySQL has played to such a degree, no wonder the big manufacturers are rushing to ask for it!
随机推荐
Spark学习(3)-Spark环境搭建-Standalone
机器学习模型验证:被低估的重要一环
Sentinel限流和异常处理
我把问烂了的MySQL面试题总结了一下
"Listen to me, thank you" can be said in ancient poetry?Tsinghua University has developed an artifact of "Searching Sentences According to Meaning", which can search for the famous sayings you want wi
LeetCode旋转数组
ERROR: Failed building wheel for osgeo
自制的数据库安全攻防题,相关靶机自己制作
49.【拷贝构造函数与重载】
Linux bash: redis-server: command not found
C# using ComboBox control
ADS communicate with c #
IDEA connects to MySQL database and uses data
纸质说明书秒变3D动画,斯坦福大学吴佳俊最新研究,入选ECCV 2022
ERROR: Failed building wheel for osgeo
Spark学习(2)-Spark环境搭建-Local
「面经分享」西北大学 | 字节 生活服务 | 一面二面三面 HR 面
[Pytorch] F.softmax() method description
The magic of SQL MERGE statement (detailed instructions)
Asynchronous processing business using CompletableFuture