1

I would like to run a user-level script or command after any time that I run npm install on a project on my computer. A similar concept to npm-postinstall but configured on a global / user level. Is this possible?

My use case: on Mac OSX, Spotlight is using serious energy to index my node_modules, I would like to automatically add a .metadata_never_index file every time.

Open to yarn solutions as well.

CoryCoolguy
  • 1,065
  • 8
  • 18
hapticdata
  • 1,661
  • 1
  • 12
  • 11
  • Does this answer your question? [Run a script (like postinstall) after npm installing a single package?](https://stackoverflow.com/questions/59934610/run-a-script-like-postinstall-after-npm-installing-a-single-package) – RobC Mar 16 '20 at 09:24

0 Answers0