2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Installing nvm
|
2022-07-02 22:52:31 +02:00
|
|
|
order: 10
|
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-02-19 08:04:25 +01:00
|
|
|
You'll need to install Node JS on your system, and to do so, we'll
|
2022-02-20 14:35:50 +01:00
|
|
|
use [nvm](https://github.com/nvm-sh/nvm), short for _Node version manager_.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-01-15 10:52:19 -05:00
|
|
|
Using nvm has a number of benefits in comparison with installing Node from
|
2022-07-02 22:52:31 +02:00
|
|
|
the node.js website, or from a package provided by your linux distribution:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-20 14:44:38 +01:00
|
|
|
- You can easily switch between different Node versions
|
|
|
|
- Everything gets installed in your home folder, avoiding permission problems
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-07-31 16:11:50 +02: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-07-02 22:52:31 +02:00
|
|
|
The TL;DR: is to run the following command in a terminal:
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```bash
|
2022-01-15 10:52:19 -05:00
|
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
2021-08-25 16:09:31 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
If you don't have `curl` on your system, here's an alternative approach using `wget`:
|
|
|
|
|
|
|
|
```bash
|
2022-01-15 10:52:19 -05:00
|
|
|
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
2021-08-25 16:09:31 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
After the script is completed, try running the following command:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
nvm
|
|
|
|
```
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
If all goes well, it should show you the nvm help.
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
<Tip>
|
|
|
|
|
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
|
|
|
|
|
|
|
</Tip>
|