To see the paths that NodeJS looks for packages while importing them, invoke:
node -e "console.log(module.paths)"