Skip to content

Commit

Permalink
chore: update documentation and scripts for nodejs v18+ installation
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusHenke committed May 4, 2024
1 parent 84454af commit adfd669
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,16 @@ Supported OS are `debian/ubuntu`, `RHEL/CentOS/Fedora`, `OpenSUSE`, `ArchLinux`.
Just open your terminal, `cd` into source directory and type `./install`.

If you want to use command `yarn` and `node` elswhere or run fronted without the run.sh script then
add `/usr/local/lib/nodejs/node-v12.14.1-linux-x64/bin` to your path.
add `/usr/local/lib/nodejs/node-v20.12.2-linux-x64/bin` to your path.

-> Problems? Then install `java`, `nodeJS` and `yarn`.

On `Windows` install these manually:
If you experience problems or are on `Windows`, install these manually:

- [Oracle JDK](https://www.oracle.com/java/technologies/javase-downloads.html)
/ [OpenJDK](https://openjdk.java.net/install/index.html) >= Java version 8
- [Node.JS](https://nodejs.org/en/download/) (v12 or v14)
- [Node.JS](https://nodejs.org/en/download/) (v18+)
- [yarn](https://yarnpkg.com/getting-started/install)

### Run
### Run frontend and backend in same terminal

- Linux: type `./run`
- Windows: `run.bat`
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ On `Linux` systems you can use the main install script `./install`, also describ

### Manual

- Install [Node.JS](https://nodejs.org/en/download/) (v12 or v14)
- Install [Node.JS](https://nodejs.org/en/download/) (v18+)
- Install [yarn](https://yarnpkg.com/getting-started/install)
- Go into `frontend` and use command `yarn`
- Done
Expand Down
6 changes: 3 additions & 3 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ else
exit 1
fi

#Install Node.JS (Ubuntu v13.3.0)
curl https://nodejs.org/dist/v12.14.1/node-v12.14.1-linux-x64.tar.xz > node.tar.xz
#Install Node.JS
curl https://nodejs.org/dist/v20.12.2/node-v20.12.2-linux-x64.tar.xz > node.tar.xz
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xJvf node.tar.xz -C /usr/local/lib/nodejs
rm node.tar.xz

#Export node path
export PATH=/usr/local/lib/nodejs/node-v12.14.1-linux-x64/bin:$PATH
export PATH=/usr/local/lib/nodejs/node-v20.12.2-linux-x64/bin:$PATH
. ~/.profile

# Check if yarn is installed
Expand Down
2 changes: 1 addition & 1 deletion scripts/frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cd ../frontend || exit

#Check for command node and export path
if [ -z "$(command -v node)" ]; then
export PATH=/usr/local/lib/nodejs/node-v12.14.1-linux-x64/bin:$PATH
export PATH=/usr/local/lib/nodejs/node-v20.12.2-linux-x64/bin:$PATH
. ~/.profile
fi

Expand Down

0 comments on commit adfd669

Please sign in to comment.