Merge pull request #5710 from mitar/patch-16

Make sure no user configuration is used.
This commit is contained in:
Ben Newman
2015-12-08 19:23:16 -05:00

View File

@@ -53,6 +53,10 @@ cp -R "$DIR/lib/node_modules/npm" "$DIR/bundled-npm"
# export path so we use the downloaded node and npm
export PATH="$DIR/bin:$PATH"
# Disable any NPM user configuration so that there are no differences
# between users when generating dev bundles on their own computers.
export NPM_CONFIG_USERCONFIG="/nonexistent"
# install npm 3 in a temporary directory
mkdir "$DIR/bin/npm3"
cd "$DIR/bin/npm3"