From d484d556b1756cfaa4e42da1ee92c546fcf8542d Mon Sep 17 00:00:00 2001 From: Condorra Date: Fri, 29 Dec 2023 17:07:59 +1100 Subject: [PATCH] Try using npm proxy instead --- .ci/build | 1 + build.sh | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.ci/build b/.ci/build index 9722bcb..36b9535 100755 --- a/.ci/build +++ b/.ci/build @@ -7,6 +7,7 @@ fi export PATH="$(pwd)/hugo:$PATH" cd siterepo +npm config set registry http://nexus:8081/repository/npm_proxy/ ./build.sh rm ./hugo-static/public/manifest.json # Conflicts with main manifest. cp -r ./assets/* ./assets/.??* ./hugo-static/public/* ../sitegen/ diff --git a/build.sh b/build.sh index db251df..d8b0f0d 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,9 @@ #!/bin/bash -e -# Concourse Worker doesn't support IPv6 well yet. -function npm-ipv4() { - node --dns-result-order=ipv4first $(which npm) $* -} -npm-ipv4 install -Dy -npm-ipv4 -y exec webpack +npm install -g npm + +npm install -Dy +npm -y exec webpack cp ./node_modules/xterm/css/xterm.css ./assets/ cp dist/main.js ./assets/main.js cd hugo-static