是否有可能在github代码中更新node.js?
我开始开发VS代码,遵循指南使我无法在不升级Node.js版本的情况下继续使用代码。
@p4nu ➜ /workspaces/vscode $ yarn
yarn install v1.22.19
$ node build/npm/preinstall.js
*** Please use node.js versions >=16.14.x and <17.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
@p4nu ➜ /workspaces/vscode $ node -v
v14.19.3
我在此处搜索了使用标签 [Visual-Studio-Code]
, [codespese]
和 [node.js]
但我没有发现。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在寻找答案后,我偶然发现了此文档步骤。
I tried adding a new configuration file but I noticed (not for my surprise) this was
可以在
devcontainer.json.json
文件中更新Node.js版本问题。在我的情况下,我只是在本地设置东西。编辑:我已经在另一个repo
After looking for answers I stumbled upon this documentation step.
I tried adding a new configuration file but I noticed (not for my surprise) this was already made in this project. It fetches the dev-container image which is referencing the node.js version 14.
It would be possible to update node.js version inside the
devcontainer.json
file, but for this repo I think it's out of the question. I'll just set up things locally in my case.Edit: I have updated the nodejs in another repo here which allows the newer node.js to be used in Codespaces.