【问题标题】:Deno: Denon installation with fish in macDeno:在 mac 中使用 fish 安装 Denon
【发布时间】:2022-12-15 11:09:10
【问题描述】:

使用 fish 安装 denon 无法识别

脚步:

  1. 开放鱼码头
  2. deno install -qAf --unstable https://deno.land/x/denon/denon.ts
  3. export PATH="/Users/user/.deno/bin:$PATH"
  4. 天龙——初始化

    输出:

     fish: Unknown command: denon 
    

    德诺版本:

    • deno 1.28.3(发布,x86_64-apple-darwin)
    • v8 10.9.194.5
    • 打字稿 4.8.3
    • 天龙2.5.0

【问题讨论】:

    标签: fish deno


    【解决方案1】:

    解决方案:

    export PATH="/Users/user/.deno/bin:$PATH"                                           ✔  ⬢ 16.17.0 
    source ~/.profile 
    

    你可能会得到下一个错误:

    ~/.cargo/env (line 4): 'case' builtin not inside of switch block
    case ":${PATH}:" in
    ^
    from sourcing file ~/.cargo/env
            called on line 1 of file ~/.profile
    from sourcing file ~/.profile
    .: Error while reading file '/Users/user/.cargo/env'
    

    去.config/fish/ 和nano config.fish

    并粘贴下一个出口,它看起来像这样:

    if status is-interactive
        # Commands to run in interactive sessions can go here
        export PATH="$HOME/.cargo/bin:$PATH"
        export PATH="/Users/user/.deno/bin:$PATH"
    end
    

    【讨论】:

      猜你喜欢
      • 2020-09-24
      • 1970-01-01
      • 2020-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多