环境
Ubuntu 20.04(官方测试版)
Visual Studio Code 1.44.2,通过 ubuntu-make (umake) 安装:
umake ide visual-studio-code
节点 12 通过
nvm install 12 && nvm alias default 12 && nvm use default
VS 代码扩展:开玩笑
错误
- 重新启动 VS Code 失败并显示:
Finished running all tests. Starting watch mode.
/bin/sh: 1: npm: not found
/bin/sh: 1: npm: not found
Starting Jest in Watch mode failed too many times and has been stopped.
see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting
我想使用 nvm 并想避免调整 bashrc 或类似的解决方法。
不工作:
- 添加到 VS Code
settings.json
(通过Ctrl++ ,“打开设置 Json”) Shift:P- 入口
"terminal.integrated.shell.linux": "/bin/bash"
- 入口