2023-09-29 19:41:24 +02:00
|
|
|
---
|
|
|
|
title: Installing NodeJS
|
2024-11-18 11:05:16 +01:00
|
|
|
sidebar_position: 10
|
2023-09-29 19:41:24 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
FreeSewing is a JavaScript project, so you need JavaScript to work with it.
|
|
|
|
You certainly already have JavaScript on your system. In your browser to be
|
|
|
|
precise. You can switch this website theme from light to dark mode, and
|
|
|
|
that would not work without JavaScript.
|
|
|
|
|
|
|
|
As a **user** of FreeSewing, this is all you need. To develop with FreeSewing
|
2024-11-18 11:05:16 +01:00
|
|
|
you are going to need to be able to run JavaScript _outside_ the browser using
|
|
|
|
a JavaScript _runtime_. Which just means a thing that can _run_ JavaScript.
|
2023-09-29 19:41:24 +02:00
|
|
|
|
|
|
|
We are going to be using [NodeJS](https://nodejs.org/) in this tutorial. It is
|
2024-11-18 11:05:16 +01:00
|
|
|
the most established of the different JavaScript runtimes. But there's also
|
|
|
|
other runtimes like [Deno](https://deno.com/) or [Bun](https://bun.sh/).
|
2023-09-29 19:41:24 +02:00
|
|
|
|
|
|
|
## Install
|
2024-11-18 11:05:16 +01:00
|
|
|
|
2023-09-29 19:41:24 +02:00
|
|
|
If you don't have NodeJS on your system, you can go to
|
|
|
|
[NodeJS.org](https://nodejs.org/) and follow the install instructions.
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::tip
|
2023-09-29 19:41:24 +02:00
|
|
|
|
|
|
|
##### NodeJS versions
|
|
|
|
|
2025-05-18 09:32:33 +00:00
|
|
|
You need Node.js 20 (lts/iron) or higher to use FreeSewing
|
2023-09-29 19:41:24 +02:00
|
|
|
|
|
|
|
If you're looking to use different versions, I can recommend using `nvm` which makes this very easy: https://github.com/nvm-sh/nvm
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|
2023-09-29 19:41:24 +02:00
|
|
|
|
|
|
|
## Test
|
|
|
|
|
|
|
|
To test whether NodeJS is installed, and see it's version, you can run this command:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
node -v
|
|
|
|
```
|
|
|
|
|
|
|
|
If you get the Node.js version number, that means NodeJs is installed. Yay!
|