当前位置:网站首页>npm配置国内镜像(淘宝镜像)
npm配置国内镜像(淘宝镜像)
2022-08-04 17:48:00 【young_man2】
npm是node.js库的包管理工具,因为镜像地址在国外,安装库会比较慢,可以将镜像地址修改为国内地址,来提供安装库的速度。配置国内镜像命令如下:、
// npm配置淘宝镜像
npm config set registry https://registry.npm.taobao.org
// 查看npm镜像是否配置成功
npm config get registry
// npm回复镜像
npm config delete register
npm config edit
// npm安装cnpm,使用cnpm来安装js库
npm install -g cnpm --registry=https://registry.npm.taobao.org
在配置镜像的时候可能会出现下面的错误
npm WARN config global `--global`, `--local` are deprecated
请查看本人的这篇博客:
(1条消息) 解决错误:npm WARN config global `--global`, `--local` are deprecated_young_man2的博客-CSDN博客
好了,希望对你有帮助
附上一张美图,好久没有放了,今天也要开心哇!

边栏推荐
猜你喜欢
随机推荐
哈夫曼树(暑假每日一题 15)
Digital-intelligent supply chain management system for chemical manufacturing industry: build a smart supply system and empower enterprises to improve production efficiency
悦刻难回巅峰
Error when using sourcemap for reporting an error: Can‘t resolve original location of error.
mmdetection/mmdetection3d多机多卡训练
Create Sentinel high-availability cluster current limiting middleware from -99
SQL优化最全总结 - MySQL(2022最新版)
Speech Recognition Learning Resources
golang安装和基础配置
NLP未来,路在何方?从学术前沿和业界热点谈起
To eliminate asynchronous callbacks, it has to be async-await
荣耀互联对外开放,赋能智能硬件合作伙伴,促进全场景生态产品融合
【MySQL】数据库的4中隔离级别
R语言dplyr包group_by函数和summarise_at函数计算dataframe计算不同分组的计数个数和均值、使用%>%符号将多个函数串起来
R语言ggplot2可视化:使用ggpubr包的ggbarplot函数可视化柱状图、color参数指定柱状图的边框的色彩
Clearance sword refers to Offer——The sword refers to Offer II 010. and the sub-array of k
localhost,127.0.0.1,本机IP
网页端IM即时通讯开发:短轮询、长轮询、SSE、WebSocket
我的大一.
php如何查询字符串以什么开头








