Skip to content

Instantly share code, notes, and snippets.

@wrburgess
Last active October 5, 2019 15:58
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 wrburgess/ca998f5650d8d9cb0a016e67afcd88d9 to your computer and use it in GitHub Desktop.
Save wrburgess/ca998f5650d8d9cb0a016e67afcd88d9 to your computer and use it in GitHub Desktop.
npm and nvm shortcuts

Update Node with NVM and move global packages

  • nvm install node --reinstall-packages-from=node or nvmup
  • npm update -g or npmgup
  • npm list -g --depth 0 or npmgout

Aliases

alias nor="npm outdated"
alias nu="npm update"
alias npmgls="npm list -g --depth 0"
alias npmgi="npm i -g eslint jest nodemon prettier typescript knex @vue/cli"
alias npmgup="npm update -g"
alias npmgout="npm outdated -g"
alias nvmup="nvm install node --reinstall-packages-from=node"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment