File tree Expand file tree Collapse file tree 5 files changed +28
-1
lines changed
apps/site/snippets/en/download Expand file tree Collapse file tree 5 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ # NOTE:
2
+ # Homebrew is not a Node.js package manager.
3
+ # Please ensure it is already installed on your system.
4
+ # Follow official instructions at https://brew.sh/
5
+ # Homebrew only supports installing major Node.js versions and might not support the latest Node.js version from the 22 release line.
6
+
1
7
# download and install Node.js
2
8
brew install node@${props.release.major}
3
9
Original file line number Diff line number Diff line change
1
+ # NOTE:
2
+ # Chocolatey is not a Node.js package manager.
3
+ # Please ensure it is already installed on your system.
4
+ # Follow official instructions at https://chocolatey.org/
5
+ # Chocolatey is not officially maintained by the Node.js project and might not support the v22.12.0 version of Node.js
6
+
1
7
# download and install Node.js
2
8
choco install nodejs-lts --version=" ${props.release.major} "
3
9
Original file line number Diff line number Diff line change
1
+ # NOTE:
2
+ # Docker is not a Node.js package manager.
3
+ # Please ensure it is already installed on your system.
4
+ # Follow official instructions at https://docs.docker.com/desktop/
5
+ # Docker images are provided officially at https://github.com/nodejs/docker-node/
6
+
1
7
# pulls the Node.js Docker image
2
8
docker pull node:${props.release.major} -${props.release.major >= 4 ? ' alpine' : ' slim' }
3
9
Original file line number Diff line number Diff line change
1
+ # installs fnm (Fast Node Manager)
2
+ curl -fsSL https://fnm.vercel.app/install | bash
3
+
4
+ # activate fnm
5
+ source ~ /.bashrc
6
+
1
7
# download and install Node.js
2
- fnm install ${props.release.major}
8
+ fnm use -- install-if-missing ${props.release.major}
3
9
4
10
# verifies the right Node.js version is in the environment
5
11
node -v # should print "${props.release.versionWithPrefix}"
Original file line number Diff line number Diff line change
1
+ # installs nvm (Node Version Manager)
2
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
3
+
1
4
# download and install Node.js (you may need to restart the terminal)
2
5
nvm install ${props.release.major}
3
6
You can’t perform that action at this time.
0 commit comments