本文最后更新于120 天前,其中的信息可能已经过时,如有错误请发送邮件到[email protected]
先要知道自己梯子的端口号,我这里是以v2RayN为例,如果是Clash,换成7890。
设置代理
# http
npm config set proxy http://127.0.0.1:10809
npm config set https-proxy http://127.0.0.1:10809
# socks5
npm config set proxy socks5://127.0.0.1:10808
npm config set https-proxy socks5://127.0.0.1:10808
关闭代理
npm config set proxy
npm config set https-proxy
查看状态
npm config list --json
