See the paths where NodeJS looks for modules

To see the paths that NodeJS looks for packages while importing them, invoke:

node -e "console.log(module.paths)"