随笔 - 337  文章 - 5  评论 - 3  阅读 - 39万

npm安装

1
npm install -g cnpm --registry=https://registry.npm.taobao.org

  安装包 配置

1
2
3
4
5
6
7
8
9
10
11
12
// 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

  

posted on   kevin_yang123  阅读(153)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
历史上的今天:
2020-12-03 mysql数据库增加索引
2018-12-03 websocket介绍
2018-12-03 swoole_http_server客户端测试
2018-12-03 linux安装netcat 运行udp服务器
2018-12-03 运行swoole_server方法
2018-12-03 bind (ERROR 502): bind(0.0.0.0:9501) failed. Error: Address already in use [98] (端口被占用)
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示