david-driscoll / atom-yeoman

A yeoman ui for atom.io
https://github.com/david-driscoll/atom-yeoman
MIT License
26 stars 5 forks source link

Consider NPM global node_modules path. #10

Open blai opened 9 years ago

blai commented 9 years ago

Fixes #7

david-driscoll commented 9 years ago

So this is totally down the right path, but I think we still need to work a little bit more.

Atom itself is running using a different version of node (in fact it might be iojs now?). Which means it's paths are usually different than the users paths to their "real" node directory.

For me I'm getting this list in atom at the moment.

Which doesn't include these that I found by just running node from the command line.

I still think we need something to work with nvm, or at least understands how nvm works.

blai commented 9 years ago

If you run this under nvm, I think it will give you the folders in nvm as well? I installed nvm a while back, but I found a system variable in my config file NVM_DIR, maybe that could be useful as well.