node.js安装模块太慢,怎么修改为国内镜像源?
- 发布
- 阅读
- 85
- 评论
- 0
- 字数
- 31
通过 config 命令配置
通过全局配置指定镜像源:
npm config set registry https://registry.npmmirror.com
在安装模块的时候指定镜像源
# 使用npmmirror镜像源 安装 loaddash 模块
npm install loaddash --registry https://registry.npmmirror.com
最后更新于 2024-01-14
评论 0