Skip to content

Commit

Permalink
COMPASS-3093: Trying workaround for npm upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
imlucas committed Aug 29, 2018
1 parent 3be739b commit e57a932
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ functions:
. ~/compass_env.sh
echo "//registry.npmjs.org/:_authToken=${compass_npm_token}" >> .npmrc
npm i -g npm@5.7.1
npm i -g node-gyp
# Trying to get rid of scandir npm errors.
npm cache verify
npm cache -f clean
Expand Down Expand Up @@ -302,7 +299,17 @@ tasks:
cd .deps
tar xzf ${fetch_npm_tarball} --strip-components=1
ls -alh
rm -f npm npx npm.cmd npx.cmd
mv node_modules/npm node_modules/npm2
node node_modules/npm2/bin/npm-cli.js i -g npm@5.7.1
rm -rf node_modules/npm2/
chmod +x npm.cmd || true
npm i -g node-gyp
npm version
variants:
- macos-compass
- macos-compass-community
Expand Down Expand Up @@ -334,9 +341,19 @@ tasks:
mv node-v8.9.3-win-x64/* .
rm -rf node-v8.9.3-win-x64
ls -alh
rm npm npx npm.cmd npx.cmd
mv node_modules/npm node_modules/npm2
node node_modules/npm2/bin/npm-cli.js i -g npm@5.7.1
rm -rf node_modules/npm2/
chmod +x npm.cmd || true
chmod +x npm || true
chmod +x node.exe || true
export APPDATA=${add_env_appdata}
npm version
variants:
- windows-compass
- windows-compass-community
Expand Down

0 comments on commit e57a932

Please sign in to comment.