From 490e0d425b716440acf33bca376b0f24f5488067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lionel=20Tr=C3=A9buchon?= <ltrebuchon@gmail.com> Date: Sat, 13 Oct 2018 03:42:14 +0200 Subject: [PATCH] [README] - Added installation instructions for some linux distros --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 226ff0e..d241bf8 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,20 @@ And now, start developing: npm run start ``` +*Warning*: For installation on Ubuntu 16.04 (and possibly similar), you need to install nodejs from the repos source. +1. Remove nodejs if you already have it (ONLY IF YOU REALLY WANT!): +``` +sudo apt remove nodejs +``` +2. Add nodejs10 from repo (download): `curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -` +3. Install: `sudo apt install -y nodejs` +4. Clean-up and install the packages for amiv-admintools +``` +rm -rf node_modules/ +npm install +npm run start +``` + This will open up a local server outputting the current version of the admintools. It refreshes automatically as soon as you save changes in any `.js` file. ### File Structure: -- GitLab