macos vscode执行node命令时报错 command not found: node

152 阅读1分钟

背景: macOS中使用fnm管理node版本,在系统Teminal中成功安装后,使用node -v正常,但是在vscode的终端中则报错

command not found: node

方法: 找了比较久,在fnm的github issue讨论中找到了答案。github.com/Schniz/fnm/…

使用该方法后成功解决。