Dump npm-debug.log to see why it exhausts available memory.