Skip to content

Instantly share code, notes, and snippets.

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 traumverloren/aaa2f7fb936647835d9eae4e2edb50a3 to your computer and use it in GitHub Desktop.
Save traumverloren/aaa2f7fb936647835d9eae4e2edb50a3 to your computer and use it in GitHub Desktop.
Prevent npm install from bogging down mac with this one weird trick!

Does your Mac becomes slow/unresponsive (fans kicking in etc.) when you npm install a huge project with a million tiny dependencies?

Solution:

Add an empty .metadata_never_index in /node_modules beforehand & it will prevent Spotlight from indexing all that crap.

ref: https://twitter.com/roelvangils/status/1113074439976075264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment