Skip to content

环境配置

fnm

  1. 运行自动脚本进行安装:

    bash
    sudo apt update
    sudo apt install -y unzip curl
    curl -fsSL https://fnm.vercel.app/install | bash
  2. 修改 ~/.bashrc 文件下 fnm 默认配置(--use-on-cd):

    bash
    fnm env --use-on-cd

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

基于 MIT 许可发布