我在Linux Mint中使用vscode。"sudo,root,npm“命令在Vscode bash终端中不起作用。我只能使用cd、ls和install命令。
yearmfew@mySpace:~/jules/clr-6$ npm
bash: npm: command not found发布于 2021-05-30 18:54:45
这是因为flatpak。我在那里安装了vscode。它在snap中正式发布。我已经从那里下载了,现在可以了。
发布于 2021-05-30 16:59:24
这在VS代码的文档中进行了解释:https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration
(它有多种选项),但为了避免这是一个只有链接的答案:
将"terminal.integrated.shell.windows“VS Code配置变量设置为"C:\Windows\System32\bash.exe”,就可以了。
为了方便起见,在命令面板中还有一个Select Default Shell命令,它可以为您设置该命令。
https://stackoverflow.com/questions/67759324
复制相似问题