Skip to content

Instantly share code, notes, and snippets.

@mfrancois3k
Forked from mischah/.bashrc || .zshrc
Created February 20, 2022 02:13
Show Gist options
  • Save mfrancois3k/f5cc9c4eb45e0dbbe35e4a597d69ee57 to your computer and use it in GitHub Desktop.
Save mfrancois3k/f5cc9c4eb45e0dbbe35e4a597d69ee57 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