我正在尝试使用 VSCode 调试器逐步完成我的 Typescript 项目。但是,我在启动时遇到此错误:
/usr/bin/env: ‘node’: No such file or directory
which node
返回 /home/user/.nvm/versions/node/v14.15.5/bin/node
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/src/index.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": ["<node_internals>/**"]
}
为什么 VSCode 声称 node
不可用?