Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. E.g. I'm always frustrated when [...]
This is what I noticed in investigation #2390 .
Describe the solution you'd like.
A clear and concise description of what you want to happen.
Make graalnodejs-community available in nvm-sh/nvm and coreybutler/nvm-windows.
On Linux, NodeJS developers manage local NodeJS instances through nvm-sh/nvm at https://github.com/nvm-sh/nvm . The role of nvm-sh/nvm in the NodeJS world is somewhat similar to the role of SDKMAN! in the Java world.
Making graalnodejs-community available in nvm-sh/nvm and coreybutler/nvm-windows will help developers update graalnodejs-community in an easy way, just like switching GraalVM versions via SDKMAN!.
The effect might look like this.
For bash on Ubuntu 22.04.3
cd /tmp
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 23.1.2-graalnodejs-community
nvm use 23.1.2-graalnodejs-community
For Windows PowerShell 5.1 or PowerShell 7 with elevated Admin permissions on Windows 11
Describe who do you think will benefit the most.
GraalVM users, GraalVM contributors, developers of libraries and frameworks which depend on GraalVM, or somebody else?
developers of libraries and frameworks which depend on NodeJS.
Describe alternatives you've considered.
A clear and concise description of any alternative solutions or features you've considered.
As described in #2390, npm for graalnodejs-community seems to be a reimplementation. In the NodeJS world, changing the package manager is not through nvm-sh/nvm or coreybutler/nvm-windows, but through nodejs/corepack. I'm not sure if the community needs to add graalnodejs-community support at https://github.com/nodejs/corepack .
It sounds like installing normal NodeJS first.
cd /tmp
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 18
nvm use 18
corepack enable
Then set packageManager in package.json of a specific project.
"packageManager": "graalnodejs-community@23.1.2",
Additional context.
Add any other context about the feature request here.
For example, link to the relevant projects, documentation, standards.
Express whether you'd like to help contributing this feature
If you'd like to contribute, please read the contribution guide.
This seems to involve changes to the release process of graaljs. I'm not sure what I can do.
@TheTaha-Alamine I saw you self-assigned the current issue and I was wondering if there was any progress? Because graalnodejs-community seems to have the same issue as oven-sh/bun, there isn't a non-rate-limited URL for listing all its available versions. Refer to https://github.com/nvm-sh/nvm/issues/3189 .
Feature request
Please include the following information:
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. E.g. I'm always frustrated when [...]
Describe the solution you'd like. A clear and concise description of what you want to happen.
Make graalnodejs-community available in
nvm-sh/nvm
andcoreybutler/nvm-windows
.It is mentioned at https://github.com/oracle/graaljs?tab=readme-ov-file#standalone-distribution that the way to install graalnodejs-community is to download the
Standalone Distribution
binary through github. But in fact, this is not a common practice for NodeJS developers.On Linux, NodeJS developers manage local NodeJS instances through
nvm-sh/nvm
at https://github.com/nvm-sh/nvm . The role ofnvm-sh/nvm
in the NodeJS world is somewhat similar to the role ofSDKMAN!
in the Java world.On Windows, NodeJS developers manage local NodeJS instances through
coreybutler/nvm-windows
at https://github.com/coreybutler/nvm-windows .coreybutler/nvm-windows
uses syntax similar tonvm-sh/nvm
to makenvm
available on Windows. Microsoft considers it the default recommended multi-version NodeJS manager, refer to https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows .Making graalnodejs-community available in
nvm-sh/nvm
andcoreybutler/nvm-windows
will help developers update graalnodejs-community in an easy way, just like switchingGraalVM
versions viaSDKMAN!
.The effect might look like this.
Describe who do you think will benefit the most. GraalVM users, GraalVM contributors, developers of libraries and frameworks which depend on GraalVM, or somebody else?
Describe alternatives you've considered. A clear and concise description of any alternative solutions or features you've considered.
As described in #2390, npm for graalnodejs-community seems to be a reimplementation. In the NodeJS world, changing the package manager is not through
nvm-sh/nvm
orcoreybutler/nvm-windows
, but throughnodejs/corepack
. I'm not sure if the community needs to add graalnodejs-community support at https://github.com/nodejs/corepack .It sounds like installing normal NodeJS first.
Then set
packageManager
inpackage.json
of a specific project.Additional context. Add any other context about the feature request here. For example, link to the relevant projects, documentation, standards.
Express whether you'd like to help contributing this feature If you'd like to contribute, please read the contribution guide.