From e16ff94aa93de02037d015daa5e20372b19a3456 Mon Sep 17 00:00:00 2001 From: Francois B Date: Mon, 19 Mar 2018 06:21:46 +0100 Subject: [PATCH] nodejs 8 lts repo added --- install_functions.sh | 7 ------- repo_functions.sh | 14 +++++++++++++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/install_functions.sh b/install_functions.sh index f2f4435..e1c785c 100644 --- a/install_functions.sh +++ b/install_functions.sh @@ -595,13 +595,6 @@ function installJava9Menu () { installAppsFromListMenu java9 } -#TODO: -function installNode8LTS () { - msg "Installing NodeJS 8 LTS" - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - &>> $logFile && retCode $? && smsgn "Adding Node repository" - runCmd "sudo apt-get install -y nodejs"; smsgn "Installing nodejs" -} - # # install Mongo DB 3 CE (headless) # diff --git a/repo_functions.sh b/repo_functions.sh index 0885093..15b44b7 100644 --- a/repo_functions.sh +++ b/repo_functions.sh @@ -354,6 +354,7 @@ beautysh;pip;dev;beautys retext;pip;dev;retext mycli;pip;dev;mycli npm;apt;javascript;npm +nodejs;apt;javascript;nodejs8lts javascript-common;apt;javascript;javascript-common yarn;npm;javascript;yarn jshint;npm;javascript;jshint @@ -439,7 +440,18 @@ nextcloud-client;addRepo_NextCloud wireshark;addRepo_WireShark darktable;addRepo_DarkTable brackets;addRepo_Brackets -kicad;addRepo_Kicad" +kicad;addRepo_Kicad +nodejs8lts;addRepo_NodeLts8" + +# +# Node 8 LTS +# +function addRepo_NodeLts8 () { + addKey "https://deb.nodesource.com/gpgkey/nodesource.gpg.key" + addRepo "nodesource.list" \ + "deb https://deb.nodesource.com/node_8.x xenial main" \ + "deb-src https://deb.nodesource.com/node_8.x xenial main" +} # # Kicad 4