【问题标题】:Bun Not Found After Running Installation Script运行安装脚本后找不到 Bun
【发布时间】:2022-07-08 02:31:15
【问题描述】:

我已通过粘贴此代码运行安装脚本:

$ curl https://bun.sh/install | bash

但是,当我尝试获取 bun 的版本时,它说找不到:

$ bun --version

Command 'bun' not found, did you mean:

  command 'ben' from deb ben (0.9.0ubuntu2)
  command 'bus' from deb atm-tools (1:2.5.1-4)
  command 'zun' from deb python3-zunclient (4.0.0-0ubuntu1)

Try: sudo apt install <deb name>

【问题讨论】:

    标签: bun


    【解决方案1】:

    安装脚本最后会显示一条消息,告诉您如何手动将 bun 添加到 PATH 中。这是输出:

    Manually add the directory to your $HOME/.bashrc (or similar)
    
       BUN_INSTALL="/home/sno2/.bun"
       PATH="$BUN_INSTALL/bin:$PATH"
    

    我建议您重新运行安装命令并复制环境变量并将它们添加到您的 PATH 中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多