是否有可能在github代码中更新node.js?

发布于 2025-02-02 22:57:51 字数 719 浏览 5 评论 0 原文

我开始开发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] 但我没有发现。

I am starting to develop VS Code and following the guide has let me to the point I'm not able to continue with Codespaces without upgrading node.js version.

I was at https://github.com/microsoft/vscode/wiki/How-to-Contribute#build so I'm trying to run yarn and I get this.

@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

I have searched here for any available answers using tags [visual-studio-code], [codespaces] and [node.js] but I found none.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木緿 2025-02-09 22:57:51

在寻找答案后,我偶然发现了此文档步骤

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文