Created
October 9, 2018 11:13
Fix NPM errors on node modules listing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Removing packages... | |
rm -rf node_modules/ | |
rm -rf ~/.node-gyp/ | |
echo Re-installing... | |
npm i --no-optional | |
echo Deduplicating modules | |
npm dedupe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment