Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.69 KB

installation-node-js.md

File metadata and controls

53 lines (34 loc) · 1.69 KB

Installation of Node.js

Since this a Node.js application, Node.js is obviously required to run it. I recommend to use the LTS version of Node.js, which is currently version 18. This is also the version under which this application has been developed and tested. Therefore, using an older version of Node.js may work, but it is not recommended.

Node.js on Windows

If you are on Windows, just download the MSI installer package and install it.

Node.js on Linux

If your Linux distribution does not provide a recent Node.js version (at least version 18 is recommended), you can add an (unofficial) Node.js package repository to your system.

Debian-based

On Debian-based systems create the file /etc/apt/sources.list.d/nodejs.list and give it the following contents:

# Node.js 18.x for Debian 11 (codename bullseye)
deb https://deb.nodesource.com/node_18.x bullseye main
deb-src https://deb.nodesource.com/node_18.x bullseye main

After that do

apt-get update && apt-get upgrade

to update the APT package lists. To install Node.js 18, type

apt-get install nodejs

That's it.

RedHat-based

On a RedHat-based system (e.g. CentOS) make sure curl is installed and then type

curl -sL https://rpm.nodesource.com/setup_18.x | bash -

to download and execute a bash script that will take care of the installation. You might want to check the script code before doing that, though.

Initial setup: install Node.js packages

The application requires a package for jsdom. To install that, type

npm install

in the directory export-server/. You only need to do this once. The packages are then cached in the node_modules/ directory for future use.