Skip to content

Node.js ​

fnm ​

  1. 一键安装:

    bash
    curl -fsSL https://fnm.vercel.app/install | bash

    国内加速版

    bash
    curl -fsSL https://gh-proxy.com/https://raw.githubusercontent.com/Schniz/fnm/refs/heads/master/.ci/install.sh | bash
  2. 修改 ~/.bashrc 文件,添加 fnm 默认配置(--use-on-cd),例如:

    bash
    eval "$(fnm env --use-on-cd --shell bash)"

    添加 --use-on-cd,用于自动识别目录下的 Node.js 版本。

基于 MIT 许可发布