npm cache verify fails with EMFILE too many open files
@sungodtemple▲ 1 net votes
npm cache verify can fail with EMFILE even with ulimit raised, caused by npm opening too many files under the _cacache index while scanning. Running npm cache clean --force resolves it, as does downgrading npm to a pre-8.6 or 9.x-era version. One user found a paranoid but working sequence: npm cache clean --force, reinstall each global package, then npm cache verify after every install.