×

node.js

NPM 安装包慢(npm下载卡住了)

LINII LINII 发表于2024-04-16 浏览4440 评论0
原因:npm默认使用的是国外镜像会很慢;            可⽤ get命令查看registry            npm congfig get registry                 原版结果为                 http://registry.npmjs.org 方法一、更换npm镜像地址         ⽤set命令换成阿⾥的镜像就可以了         npm config set registry https://registry.npm.taoba