Custom node version to run VSCode extensions

本小妞迷上赌 提交于 2019-12-12 20:24:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!