# 第一次使用 fnm 时需要安装
winget install Schniz.fnm
# configure fnm environment
fnm env --use-on-cd | Out-String | Invoke-Expression
## 之后直接使用对应版本就行
fnm use v24.0.1
# 修改默认使用什么版本
fnm default v24.0.1
# verifies the right Node.js version is in the environment
node -v # should print `v24.0.1`
# 启用 pnpm
corepack enable pnpm
# verifies the right npm version is in the environment
pnpm -v # should print `10.8.3`