I installed module by
sudo npm install -g xxx in OS X, and the command echoes the module was installed in /usr/local/lib/node_modules/xxx.
But the require('xxx') still fails claiming `Cannot find module 'xxx'. Only installing the module locally again by
sudo npm install xxx can fix the error.
Anything need to be configured in my OSX?
sudoto install stuff, which is nice.sudo, the EACCESS error will occur.