From 95f4ae0e3ab50a41198c581433bc88d3b47e8bdd Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Wed, 5 Aug 2020 14:56:40 -0400 Subject: [PATCH] Use nodesource to install node (#742) The node installed by nvm gives errors when running "npm install". Also installs Python as it is need. Presumbly the system provided npm version has python as a dependency so it was installed when npm was installed. --- release/builder/build.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/release/builder/build.sh b/release/builder/build.sh index 47e6cd3e6..87c87c3d3 100755 --- a/release/builder/build.sh +++ b/release/builder/build.sh @@ -21,15 +21,11 @@ apt-get install apt-utils gnupg -y apt-get upgrade -y # Install Java apt-get install openjdk-11-jdk-headless -y -# Install nvm -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" -# Install node -nvm install node -# Install npm -nvm install-latest-npm +# Install Python +apt-get install python -y +# Install Node +curl -sL https://deb.nodesource.com/setup_current.x | bash - +apt-get install -y nodejs # Install gcloud # Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu apt-get install lsb-release -y