well you installed a package via npm so it gets downloaded into the node_modules folder with that name. So node.js is looking into that folder with that name.
It should find a folder named like in the require statement and within the folder there is a package.json of the lib/whatever you downloaded which contains further information like the entry point file, which gets executed.