2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Installing nvm
|
2024-11-18 11:05:16 +01:00
|
|
|
sidebar_position: 15
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
FreeSewing is built with [Node.js](https://nodejs.org/), a JavaScript runtime.
|
|
|
|
|
2022-12-29 06:25:01 -08:00
|
|
|
You'll need to install Node.js on your system, and to do so, we'll
|
|
|
|
use [`nvm`](https://github.com/nvm-sh/nvm), short for _Node Version Manager_.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-29 06:25:01 -08:00
|
|
|
Using `nvm` has a number of benefits in comparison with installing Node.js from
|
2023-05-04 19:16:07 -07:00
|
|
|
the Node.js website, or from a package that came with macOS.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-29 06:25:01 -08:00
|
|
|
- You can easily switch between different Node.js versions
|
2022-02-20 14:44:38 +01:00
|
|
|
- Everything gets installed in your home folder, avoiding permission problems
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-12-29 06:25:01 -08:00
|
|
|
To setup `nvm`, [follow the install instructions in the nvm
|
2022-07-02 22:52:31 +02:00
|
|
|
README](https://github.com/nvm-sh/nvm#installing-and-updating).
|
2022-01-15 10:52:19 -05:00
|
|
|
|
2022-10-12 22:03:16 +02:00
|
|
|
After the installation, try running the following command:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
nvm
|
|
|
|
```
|
|
|
|
|
2022-12-29 06:25:01 -08:00
|
|
|
If all goes well, it should show you the `nvm` help.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::tip
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-07-02 22:52:31 +02:00
|
|
|
If you get `nvm: command not found` or something similar, close the current terminal
|
|
|
|
window, and open a new one. Now `nvm` should be found.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|