Skip to content

Instantly share code, notes, and snippets.

@Berkmann18
Created October 9, 2018 11:13
Show Gist options
  • Save Berkmann18/3791d8660215983c0a9df62f00ea3a25 to your computer and use it in GitHub Desktop.
Save Berkmann18/3791d8660215983c0a9df62f00ea3a25 to your computer and use it in GitHub Desktop.
Fix NPM errors on node modules listing
#!/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