My NODE_PATH is empty. The npm will create symbol link for the global modules to /usr/local/bin/ folder.

在 2014年1月10日，下午11:54，Yazhong Liu <notifications@github.com> 写道：

> In lib/module.js:
> 
> >    } else {
> > -    var homeDir = process.env.HOME;
> > +    homeDir = process.env.HOME;
> > +    npmDir = path.resolve(process.execPath, '..', '..', 'lib', 'node_modules');
> >    }
> >  
> >    var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
> And you could clear your $NODE_PATH, and have a try. This problem is a real case and it's the original state of current nodejs just after it has been installed.
> 
> —
> Reply to this email directly or view it on GitHub.
>