Installing Node.js NES
How to install Node.js NES
Listing Available Versions
Version | Linux x64 | Darwin x64 | Darwin ARM | Windows x64 |
---|---|---|---|---|
v12 | ✅ | ✅ | ❌ | ✅ |
v14 | ✅ | ✅ | ❌ | ✅ |
v16 | ✅ | ✅ | ✅ | ✅ |
v18 | ✅ | ✅ | ✅ | ✅ |
To retrieve the full list of available versions, including trials, run the following command in your terminal:
Note
You must pass in a valid token for the endpoint to return non-trial versions
curl -H "Authorization: Bearer <token>" https://registry.nes.herodevs.com/nodejs/nes/index.tab
Download Node.js
Node.js NES can be downloaded and installed in several ways. This guide highlights the most common and convenient methods.
Using NVM
The fastest way to download Node.js is through NVM.
export NVM_NODEJS_ORG_MIRROR=https://registry.nes.herodevs.com/nodejs/nes/index.tab
export NVM_AUTH_HEADER="Bearer <token>"
nvm ls-remote # check all the available versions
nvm install v16.20.5-nes
nvm use v16.20.5-nes
Alternatively, you can download the binary using curl or wget.
Using curl
To download the binary, your curl
command should be formatted like the following:
# Outputs the a tarball or zip to the current working directory
curl -sL -O -H "Authorization: Bearer <token>" ARTIFACT_URL
For example, to download the Node.js 16 NES, choose your platform and then run the associated curl
command:
curl -sL -O -H "Authorization: Bearer <token>" https://registry.nes.herodevs.com/nodejs/nes/v16.20.5-nes/node-v16.20.5-nes-darwin-arm64.tar.gz
Using wget
Alternatively, you can use wget
to download the binary. The format is as follows:
# Outputs the a tarball or zip to the current working directory
wget --header="Authorization: Bearer <token>" ARTIFACT_URL
For example, to download the Node.js 16 NES, choose your platform and then run the associated wget
command:
wget --header="Authorization: Bearer <token>" https://registry.nes.herodevs.com/nodejs/nes/v16.20.5-nes/node-v16.20.5-nes-darwin-arm64.tar.gz
Using GitHub Actions
runs:
using: Use Node NES
steps:
- uses: neverendingsupport/setup-node-nes@v4
with:
node-version: 16-nes
nes-registry-token: ${{ secrets.NES_REGISTRY_TOKEN }}