Wood Chen

node.js安装模块太慢,怎么修改为国内镜像源?

0 评论71 阅读31 字

通过 config 命令配置

通过全局配置指定镜像源:

npm config set registry https://registry.npmmirror.com

在安装模块的时候指定镜像源

# 使用npmmirror镜像源 安装 loaddash 模块
npm install loaddash --registry https://registry.npmmirror.com

最后更新于 2024-01-14

相关文章

评论 0