Created
October 9, 2018 11:13
-
-
Save Berkmann18/3791d8660215983c0a9df62f00ea3a25 to your computer and use it in GitHub Desktop.
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