前端项目配置下载源
- npm:
- npm config set registry registry=https://registry.npmmirror.com -g
- 验证: npm config get registry
- yarn:
- yarn config set registry registry=https://registry.npmmirror.com -g
- yarn config get registry
- yarn找不到, 需要管理员在命令行: set-executionpolicy remotesigned
- pnpm:
- pnpm config set registry https://registry.npmmirror.com/
- pnpm config get registry