Open blai opened 9 years ago
Odd, do you happen to know what directory they're saved too?
Because atom is a different runtime environment than the real node... it's kinda hacking to find them.
Right now for linux it adds /usr/lib/node_modules/
which looking it now might just be terribly wrong.
https://github.com/david-driscoll/atom-yeoman/blob/master/lib/generator.ts#L20
And forgive my ignorance, I don't have a linux/mac machine at the moment. I'm going to setup a VM sometime soon.
I just setup a plain Ubuntu VM and fired up atom with atom-yeoman installed. After installing a generator everything seems to be working. I am very curious to find out what the path for global modules.
/usr/local/lib/node_modules/generator-aspnet/ for me
@nosami on Jabbr ran into this too... adding /usr/local/lib/node_modules/ to the paths to search. Hopefully that'll fix it for you.
@david-driscoll Thanks for the quick response. I am exploring this project in hope that I can help down the line. I use nvm so my node_modules dir would be this /Users/brianlai/.nvm/v0.10.37/lib/node_modules
.
hrmm I'd have to know more about how .nvm works to get the right way to search for the files.
I added the extra path for @nosami so, and that seemed to work there. So it's probably just along the lines of detecting if nvm is in the home directory and finding the currently selected version.
https://github.com/david-driscoll/atom-yeoman/blob/master/lib/generator.ts#L24
⌘ + shift + P
=>yo
=> Generator window shows up with empty list (but I do have a couple of generators installed locally usingnpm install -g
)