How to Update Node.js Version in Project IDX?

Hi everyone,

I’m trying to update the Node.js version for my project in Project IDX. I’ve seen that it’s possible to do this in local environments, but I haven’t found a way to do it within the platform.

Is there a way to update the Node.js version directly in Project IDX? Or perhaps there’s a recommended workaround to achieve this?

Any help or suggestions would be greatly appreciated!

Thanks

You can update the dependency in the dev.nix file and rebuild the environment.

Here are the supported versions:
https://search.nixos.org/packages?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=node

2 Likes

Hi Srivats,

Thanks for your previous advice! I have a follow-up question regarding specifying Node.js versions.

Is it possible to specify minor versions directly in the dev.nix file? For example, could I use either of the following approaches?

Option 1:

{pkgs}: {
channel = “stable-23.11”;
packages = [
pkgs.nodejs_20.17.0
];
// Other configurations
}

Option 2:

{pkgs}: {
channel = “stable-23.11”;
packages = [
pkgs.nodejs_20.17
];
// Other configurations
}

If not, what would be the correct way to specify a specific minor version in Project IDX?

Thanks for your help!

Best regards,
C. David

Hi,
So if you are able to find the minor version on nix then yes you can use it… If it’s not available on nix then it might not work…

Hope this helps

1 Like