Spotlight search on macOS is indexing all
node_modules folders, resulting in unnecessarily bloated indexes. There is no way to define Spotlight exclusions by pattern (file name) — each exclusion must be individually added.
npm could avoid this by including a
.metadata_never_index file in
This issue has been brought up before, in the old repo: https://github.com/npm/npm/issues/15346