Skip to content

Commit

Permalink
Cleanup all global node modules + uninstall node to start fresh on ea…
Browse files Browse the repository at this point in the history
…ch CI run (Chia-Network#9820)
  • Loading branch information
cmmarslender authored Jan 14, 2022
1 parent 6283f82 commit 943b355
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions build_scripts/clean-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ rm chia-blockchain-gui/temp.json || true
( cd "$PWD/chia-blockchain-gui" && git checkout HEAD -- package-lock.json ) || true
cd "$PWD" || true

# Do our best to get rid of any globally installed notarize-cli versions so the version in the current build script is
# installed without conflicting with the other version that might be installed
PATH=$(brew --prefix node@16)/bin:$PATH || true
export PATH
npm uninstall -g notarize-cli || true
npm uninstall -g @chia-network/notarize-cli || true
npm uninstall -g electron-installer-dmg || true
npm uninstall -g electron-packager || true
npm uninstall -g electron/electron-osx-sign || true
# Clean up old globally installed node_modules that might conflict with the current build
rm -rf /opt/homebrew/lib/node_modules || true

# Clean up any installed versions of node so we can start fresh
brew list | grep "^node\@\|^node$" | xargs -L1 brew uninstall || true

0 comments on commit 943b355

Please sign in to comment.