Skip to content

Commit b975ea1

Browse files
Merge pull request #29 from devinekask/SimonVanherweghe-patch-13
Clarify nvm installation and Node.js versioning
2 parents 5132fa0 + 9602621 commit b975ea1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/modules/packages-02-npm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ You might have noticed the 'Node' in Node package manager, it won't come as a su
4141
### nvm
4242

4343
:::caution
44-
Be sure to have a `.zshrc` or `.zprofile` file in your home directory. If you don't have one, create it with `touch ~/.zshrc` Otherwise, the installation of nvm will fail.
44+
Be sure to have a `.zshrc` or `.zprofile` file in your home directory. If you don't have one, create it with `touch ~/.zshrc` or `touch ~/.zprofile` Otherwise, the installation of nvm will fail.
4545
:::
4646

4747
To handle different Node.js versions easaly, there is a tool called `nvm` (node version manager) Lets start by [installing](https://github.com/nvm-sh/nvm#installing-and-updating) this one first. [^1] See the documentation for the most recent version, the command is something like this (**but change the version number**): `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.XX.X/install.sh | bash`
4848

4949
To doule-check if everything went well, close every terminal instance and open a new window. Type `nvm` and you should get an overview with all the commands nvm has to offer.
5050

51-
Now the Node Version Manager is installed, but we still have to install a Node.js runtime. With the `install` command, we can install specific Node.js versions, but by using the alias `node` we simply install the latest stable version.
51+
Now the Node Version Manager is installed, but we still have to install a Node.js runtime. With the `install` command, we can install specific Node.js version. By using the '--lts' option, we are installing the latest stable version with **l**ong **t**ime **s**upport.
5252

5353
```bash
54-
nvm install node
54+
nvm install --lts
5555
```
5656

5757
Have a look at [the documentation](https://github.com/nvm-sh/nvm#usage) to see which other options are possible.

0 commit comments

Comments
 (0)