Prevent Spotlight from indexing node_modules folders


(Letra Studio) #1

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 node_modules.

This issue has been brought up before, in the old repo: https://github.com/npm/npm/issues/15346


(Devin Rhode) #2

@isaacs Please consider this! For all the unfortunate folks with older/slower macs! Very easy, with great potential boost in performance :)