使用fish安装denon不认识它
步骤:
- 开放鱼类码头
- deno install -qAf——不稳定https://deno.land/x/denon/denon.ts
- =出口路径"/用户/用户/.deno/bin: PATH"美元;
- 天龙——init 输出:
fish: Unknown command: denon
Deno版本:
- deno 1.28.3 (release, x86_64-apple-darwin)
- v8 10.9.194.5
- 打印稿4.8.3
- 天龙2.5.0
解决方案:
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