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.
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.