Skip to content

Instantly share code, notes, and snippets.

@raynoppe
Last active August 25, 2020 09:36
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 raynoppe/1cf524a35667ff3d211e9abee107c04d to your computer and use it in GitHub Desktop.
Save raynoppe/1cf524a35667ff3d211e9abee107c04d to your computer and use it in GitHub Desktop.
Node functions
Kill all open processes
// Kill method 2
ps -ef | grep node
2617 u0_a171 0:04 /data/data/com.termux/files/usr/bin/node app.js
3341 u0_a171 0:00 grep node
kill 2617
// Upgrade node mac using home-brew
brew update
brew upgrade node
npm install -g npm
// speed up your mac
npm install fsevents -g
npm rebuild fsevents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment