Blame
|
1 | # 代理配置 |
||||||
| 2 | ||||||||
| 3 | ## nodejs |
|||||||
| 4 | ||||||||
| 5 | ### npm 代理配置 |
|||||||
| 6 | ||||||||
| 7 | 设置 |
|||||||
| 8 | ||||||||
| 9 | ```sh |
|||||||
| 10 | npm config set registry https://registry.npmmirror.com/ |
|||||||
| 11 | yarn config set registry https://registry.npmmirror.com/ |
|||||||
| 12 | pnpm config set registry https://registry.npmmirror.com/ |
|||||||
| 13 | ``` |
|||||||
| 14 | ||||||||
| 15 | 查看 |
|||||||
| 16 | ||||||||
| 17 | ```sh |
|||||||
| 18 | npm config get registry |
|||||||
| 19 | yarn config get registry |
|||||||
| 20 | pnpm config get registry |
|||||||
| 21 | ``` |
|||||||
| 22 | ||||||||
| 23 | ### node-sass |
|||||||
| 24 | ||||||||
| 25 | ```sh |
|||||||
| 26 | npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
|||||||
| 27 | yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
|||||||
| 28 | pnpm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
|||||||
| 29 | ``` |
|||||||