Commit 6c8853
2024-05-01 10:41:26 Qwas: 新增代理配置| /dev/null .. proxy.md | |
| @@ 0,0 1,29 @@ | |
| + | # 代理配置 |
| + | |
| + | ## nodejs |
| + | |
| + | ### npm 代理配置 |
| + | |
| + | 设置 |
| + | |
| + | ```sh |
| + | npm config set registry https://registry.npmmirror.com/ |
| + | yarn config set registry https://registry.npmmirror.com/ |
| + | pnpm config set registry https://registry.npmmirror.com/ |
| + | ``` |
| + | |
| + | 查看 |
| + | |
| + | ```sh |
| + | npm config get registry |
| + | yarn config get registry |
| + | pnpm config get registry |
| + | ``` |
| + | |
| + | ### node-sass |
| + | |
| + | ```sh |
| + | npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
| + | yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
| + | pnpm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
| + | ``` |