Node.js NES can be installed in several ways. This guide highlights the most common and convenient methods.
Supported platforms
Linux x64 | Darwin x64 | Darwin ARM | Windows x64 | |
---|---|---|---|---|
v12 | ✅ | ✅ | ❌ | ✅ |
v14 | ✅ | ✅ | ❌ | ✅ |
v16 | ✅ | ✅ | ✅ | ✅ |
v18 | ✅ | ✅ | ✅ | ✅ |
Supported NES Versions
- v12.22.12 (Trial)
- v14.21.3 (Trial)
- v14.21.5 (NES)
- v16.20.2 (Trial)
- v16.20.4 (NES)
- v18.20.6 (NES)
Release content
Depending on the supported architectures and platform, each release will contain a list of artifacts that looks like this:
node-v16.20.2-nes-darwin-arm64.tar.gz
node-v16.20.2-nes-darwin-arm64.tar.xz
node-v16.20.2-nes-darwin-x64.tar.gz
node-v16.20.2-nes-darwin-x64.tar.xz
node-v16.20.2-nes-headers.tar.gz
node-v16.20.2-nes-headers.tar.xz
node-v16.20.2-nes-linux-x64.tar.gz
node-v16.20.2-nes-linux-x64.tar.xz
node-v16.20.2-nes-win-x64.7z
node-v16.20.2-nes-win-x64.zip
node-v16.20.2-nes-x64.msi
node-v16.20.2-nes.tar.gz
node-v16.20.2-nes.tar.xz
The URL of an artifact in the registry should look like:
https://registry.nes.herodevs.com/nodejs/nes/v16.20.2-nes/node-v16.20.2-nes-darwin-arm64.tar.gz
Using curl
To download the binary using `curl`, run the following command in your terminal:
curl -sL -H "Authorization: Bearer <token>" <ARTIFACT_URL>
Using wget
Alternatively, you can use `wget` to download the binary. Run the following command in your terminal:
wget --header="Authorization: Bearer <token>" <ARTIFACT_URL>
Using NVM
NVM is a popular Node.js version manager, that supports NES. Run the following command in your terminal:
export NVM_NODEJS_ORG_MIRROR=https://registry.nes.herodevs.com/nodejs/all/
export NVM_AUTH_HEADER="Bearer <token>"
nvm ls-remote # check all the available versions
nvm install v16.20.2-nes
nvm use v16.20.2-nes
Using Github Actions
It is possible to integrate the Node NES with Github actions, by using our action.
runs:
using: Use Node NES
steps:
- uses: neverendingsupport/setup-node-nes@v4
with:
node-version: 16-nes
nes-registry-token: ${{ secrets.NES_REGISTRY_TOKEN }}