I have installed nodejs and npm using repos in Ubuntu 12.10, and generally I install a module using
sudo npm install -g nodemodule
but when I try to do var mod = require("nodemodule") I receive an error I have to use require("/usr/lib/node_modules/nodemodule"), how canI fix this?