Skip to content

Instantly share code, notes, and snippets.

@sethuster
Created April 30, 2019 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sethuster/aca00c424aa3d30a56a8c08a638f0b73 to your computer and use it in GitHub Desktop.
Save sethuster/aca00c424aa3d30a56a8c08a638f0b73 to your computer and use it in GitHub Desktop.
Node Nuker script to automatically destroy node_modules and reinstall.
#!/bin/bash
echo -e "Removing node_modules directory"
rm -rf node_modules
echo -e "Removing package-lock.json"
rm package-lock.json
echo -e "Reinstalling modules"
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment