Installing Node.js NES
How to install Node.js NES
Version | Linux x64 | Darwin x64 | Darwin ARM | Windows x64 |
---|---|---|---|---|
v12 | ✅ | ✅ | ❌ | ✅ |
v14 | ✅ | ✅ | ❌ | ✅ |
v16 | ✅ | ✅ | ✅ | ✅ |
v18 | ✅ | ✅ | ✅ | ✅ |
Node.js NES can be installed in several ways. This guide highlights the most common and convenient methods.
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 vX.Y.Z-nes
nvm use vX.Y.Z-nes
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 }}