vscode-eslint: node version does not match that in terminal
Output tab says:
[Info - 2:18:01 PM] ESLint server is starting
[Info - 2:18:02 PM] ESLint server running in node v14.16.0
[Info - 2:18:02 PM] ESLint server is running.
Whereas terminal says:
14:18:04 ➜ node -v
v16.11.1
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
@gajus by default the extension uses the node runtime shipped with VS Code. This is why you see
v14.16.0
.The way how to use a different node runtime is the
eslint.runtime
property. Usually usingnode
as a value should pick the default version even if you are using a node version manager.An example snippet to add to vscode settings would be ideal here.