Skip to content

Commit 68c3996

Browse files
authored
download: restore preamble in download snippets (#7360)
See https://nodejs-hj4exhlax-openjs.vercel.app/en/download/package-manager (preview from #7323) for the previous version See #7351 (comment) for removal context
1 parent 3cddcc8 commit 68c3996

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

apps/site/snippets/en/download/brew.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
# download and install Node.js
28
brew install node@${props.release.major}
39

apps/site/snippets/en/download/choco.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
# download and install Node.js
28
choco install nodejs-lts --version="${props.release.major}"
39

apps/site/snippets/en/download/docker.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
# pulls the Node.js Docker image
28
docker pull node:${props.release.major}-${props.release.major >= 4 ? 'alpine' : 'slim'}
39

apps/site/snippets/en/download/fnm.bash

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
# installs fnm (Fast Node Manager)
2+
curl -fsSL https://fnm.vercel.app/install | bash
3+
4+
# activate fnm
5+
source ~/.bashrc
6+
17
# download and install Node.js
2-
fnm install ${props.release.major}
8+
fnm use --install-if-missing ${props.release.major}
39

410
# verifies the right Node.js version is in the environment
511
node -v # should print "${props.release.versionWithPrefix}"

apps/site/snippets/en/download/nvm.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# installs nvm (Node Version Manager)
2+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
3+
14
# download and install Node.js (you may need to restart the terminal)
25
nvm install ${props.release.major}
36

0 commit comments

Comments
 (0)