在 Git 分叉中找不到命令

Command Not Found in Git Fork

我正在使用 Git Fork 作为我的 Git 客户端。最近我对 Node JS 的安装做了一些更改。这样做之后,我所有的预提交挂钩都抛出了一个错误,说 npm: command not found.

我可以从终端使用 NPM,但由于某些原因 Git Fork 无法找到它。有谁知道为什么?

来自 Git 分叉支持

Most probably your ENV in command line is different. Start Fork from CLI (open -a Fork .) to make it inherit ENV of the parent process. Then both your terminal and Fork will have the same PATH.