buildNpmPackage: avoid using npm config

This commit is contained in:
Isaac Shapira
2025-01-12 16:21:53 +01:00
committed by FliegendeWurst
parent d9e9853753
commit 117929b9cc
@@ -81,9 +81,11 @@ npmConfigHook() {
cachePath="$TMPDIR/cache"
fi
npm config set cache "$cachePath"
npm config set offline true
npm config set progress false
echo "Setting npm_config_cache to $cachePath"
# do not use npm config to avoid modifying .npmrc
export npm_config_cache="$cachePath"
export npm_config_offline="true"
export npm_config_progress="false"
echo "Installing dependencies"