主题
Node.js
fnm
一键安装:
bashcurl -fsSL https://fnm.vercel.app/install | bash国内加速版
bashcurl -fsSL https://gh-proxy.com/https://raw.githubusercontent.com/Schniz/fnm/refs/heads/master/.ci/install.sh | bash修改
~/.bashrc文件,添加 fnm 默认配置(--use-on-cd),例如:basheval "$(fnm env --use-on-cd --shell bash)"添加
--use-on-cd,用于自动识别目录下的 Node.js 版本。
