规格
1.63.2
问题
我安装了asdf,按照doc http://asdf-vm.com/guide/getting-started.html#_3-install-asdf的格式,我是通过国产软件安装的。
asdf命令在我的iTerm中运行良好。但是,当通过VScode终端和VSCode源代码管理提交或推送时,它没有工作。
VSCode终端的误差
Unknown command: `asdf exec npm run pre-commit`
/usr/local/Cellar/asdf/0.9.0/libexec/bin/asdf: line 82: /usr/local/opt/asdf/lib/commands/command-help.bash: No such file or directory下面来自VSCode源代码管理

我输出的错误。
> git push origin feature/my-branch
Unknown command: `asdf exec npm run pre-commit`
/usr/local/Cellar/asdf/0.9.0/libexec/bin/asdf: line 82: /usr/local/opt/asdf/lib/commands/command-help.bash: No such file or directory在我的iTerm中运行iTerm很好。iTerm中的zsh与VSCode中的zsh之间必须有不同的配置。
到目前为止,我的尝试是在VSCode settings.json中添加此配置。
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.defaultProfile.osx": "zsh"但仍然不起作用
我的asdf ~/.zshrc设置
. /usr/local/opt/asdf/libexec/asdf.sh可能的原因是什么?
发布于 2022-06-02 08:52:38
发现可疑的决定
我在asdf/lib中也没有命令文件夹
因此,我从asdf/libexec/lib复制了相同的内容。
它起了作用
https://stackoverflow.com/questions/70734913
复制相似问题