【发布时间】:2020-08-12 08:02:29
【问题描述】:
环境
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 defaultVS 代码扩展:开玩笑
错误
- 重启 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+Shift+P,“打开设置 Json”):- 条目
"terminal.integrated.shell.linux": "/bin/bash"
- 条目
【问题讨论】:
标签: visual-studio-code jestjs nvm ubuntu-20.04