Skip to content

Instantly share code, notes, and snippets.

@Berkmann18
Created October 9, 2018 11:13
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