buildNpmPackage: avoid using npm config (#373220)

This commit is contained in:
K900
2025-02-09 09:29:40 +03:00
committed by GitHub
@@ -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"