From c8b6990e1db2587d78f50d69e4e8ae2f4a19a1c3 Mon Sep 17 00:00:00 2001 From: "T. Brandon Ashley" Date: Fri, 1 Feb 2019 10:45:37 -0500 Subject: [PATCH] fix(scripts): install LTS node on centos during build (#79) --- Makefile | 1 + scripts/build | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5bb3519b..71fd6e78 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ compile: ## Build the application clean: ## Clean up generated artifacts @rm -rf \ + _build \ assets/node_modules \ assets/elm-stuff \ priv/graphql \ diff --git a/scripts/build b/scripts/build index 72e79ca8..582948ae 100755 --- a/scripts/build +++ b/scripts/build @@ -45,8 +45,8 @@ function do_install(){ unzip /tmp/Precompiled.zip -d /usr/local echo "==> Installing git, node, npm" - yum install -y git nodejs npm --enablerepo=epel - npm cache clean + curl -sL https://rpm.nodesource.com/setup_10.x | bash - + yum install -y git nodejs --enablerepo=epel } function do_pre_build(){