From 257d1b3c7e6addf79f598a18bf5798e4f38d32f5 Mon Sep 17 00:00:00 2001 From: Condorra Date: Fri, 29 Dec 2023 00:43:24 +1100 Subject: [PATCH] Disable IPv6 default for npm --- build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 4bb7af4..efface6 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,11 @@ #!/bin/bash -npm install -Dy -npm -y exec webpack +# 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 cp ./node_modules/xterm/css/xterm.css ./assets/ cp dist/main.js ./assets/main.js cd hugo-static