可用镜像
npm
运行中Node.js 包管理器 (npm / pnpm / yarn) 镜像代理,每日自动同步上游。
https://npm.mdxymo.top
使用指南
推荐使用 pnpm,配合镜像源下载 Node 包。
Shell
# 设为默认镜像源
pnpm config set registry https://npm.mdxymo.top/
# 验证
pnpm config get registry
# 安装包
pnpm add react
# 或临时使用,不影响全局
pnpm add lodash --registry https://npm.mdxymo.top/
如果尚未安装 pnpm,可执行 npm install -g pnpm 安装。
Shell
# 设为默认镜像源
npm config set registry https://npm.mdxymo.top/
# 验证
npm config get registry
# 安装包
npm install react
Shell
# 设为默认镜像源
yarn config set registry https://npm.mdxymo.top/
# 验证
yarn config get registry
# 安装包
yarn add react