From 2a575b76bb04386c7efbcf095734470a9a5af944 Mon Sep 17 00:00:00 2001 From: poojasonawane27 <164594344+poojasonawane27@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:33:16 -0700 Subject: [PATCH] Update ubuntu.sh to install latest version of NodeJS --- language_setup/ubuntu.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/language_setup/ubuntu.sh b/language_setup/ubuntu.sh index b5e2c30..a4d4162 100644 --- a/language_setup/ubuntu.sh +++ b/language_setup/ubuntu.sh @@ -41,12 +41,10 @@ echo "setting up JavaScript " printf "%100s" " " | tr ' ' '-' echo "" sudo apt install curl -curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash +curl -fsSL https://deb.nodesource.com/setup_20.x | bash +apt-get -y install nodejs source ~/.bashrc -sudo apt install npm -nvm install 16.10.0 node -e "console.log('Running Node.js ' + process.version)" -npm i -g npm npm install -g lodash npm i --save lodash