——被墙蹂躏旧了,竟然也变得熟练了,
曾经装个 node 开发环境比重装系统还慢。
下载
Node https://nodejs.org/zh-cn/
Yarn https://classic.yarnpkg.com/zh-Hans/docs/install#windows-stable
安装
目录选择
E:\app\Node\
E:\App\Yarn\
指定缓存目录
建立目录 E:\App\Yarn\cache
Powershell 执行
PS > yarn config set cache-folder "E:\App\Yarn\cache"
指定代理服务器
PS > yarn config set proxy http://127.0.0.1:10809
git 代理
git config --global http.proxy http://127.0.0.1:10809
git config --global http.proxys http://127.0.0.1:10809
Windows Defender 添加白名单
【托盘 Windows 安全中心】【(左侧栏)病毒和威胁保护】【(中间)管理设置】【排除项】
添加:
E:\App\Yarn\cache
E:\App\Node\node_modules
节约时间等于续命
唔… 我发现每次配置这些镜像源代理什么的真是麻烦死了,于是在国外服务器上跑 codecom/code-server 远程干活。如果只是单纯用命令行的话 cockpit 这个好像也还行,用包管理直接装就可以。