Skip to content

Instantly share code, notes, and snippets.

@mischah
Last active February 20, 2022 02:13
Show Gist options
  • Save mischah/7cf40b14d8085c0cd9d7f05efd943f27 to your computer and use it in GitHub Desktop.
Save mischah/7cf40b14d8085c0cd9d7f05efd943f27 to your computer and use it in GitHub Desktop.
Aliases to trash node_modules and lockfiles via Yarn and npm
alias npm-reset="rm -rf node_modules && rm -f package-lock.json && npm install && npx node-notifier-cli -t 'Done' -m 'npm modules reinstalled' -s Glass -i https://cdn.rawgit.com/npm/logos/31945b5c/npm%20square/n-64.png"
alias yarn-reset="rm -rf node_modules && rm -f yarn.lock && yarn && npx node-notifier-cli -t 'Done' -m 'npm modules reinstalled' -s Glass -i https://cdn.rawgit.com/yarnpkg/assets/ab1fa0d4/yarn-kitten-circle.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment