问题
I'm making a vscode extension for my personal use. I'd really like to use a more recent node version. However, I'm not sure how does VSCode chooses which node version to use.
The only node.js that I have installed is 8.1.3
. But when I debug the extension, I see that VSCode uses 7.*.*
(via process.version
).
I've been searching documentation for an hour, so far, without luck. Any help is appreciated.
回答1:
This is not possible. Quoting the reply of one of the team members (Andre Weinand) in #18253:
VS Code runs extensions on the node version that is built into electron (on which VS Code is based). This cannot be changed.
来源:https://stackoverflow.com/questions/45062881/custom-node-version-to-run-vscode-extensions