Random crashes with "Maximum call stack size exceeded"

nodered@sentry:~/.node-red/node_modules $ npm ls | sed '/deduped$/d' | wc -l
314

No comprendo. Manually copy/pasting the output to a texteditor gives 248 lines (not including .. and .). Mind you one item is a symlink to my own copy of node-red-nodes . But why the discrepancy?

Edit: The discrepancy of course comes from npm ls showing every installed module and ls -l in .node-red/node_modules dir only those local to Node-RED.