Search code examples
yeomanyeoman-generator

Yeoman 'yo webapp' runs, but no files created in directory


I've got Node and Yeoman installed, after going down a wrong path or two (Homebrew install, sudo for Yeoman), I then installed Node correctly with the package on their site (mac os x, mavericks) and reinstalled Yeoman without sudo.

But I think I've borked things up a bit, somehow. After installing the webapp generator (which also worked fine), I go into a yeomantest folder on my Desktop and try to 'yo webapp', but while everything runs and Yeoman says it worked, there is nothing in the folder.

It's creating these files somewhere (because when I run it again, it asks me whether to overwrite or not), I just can't figure out where or why.

Possibly it's because Node installed here: "PATH=/Users/xpeeblix/.node/bin/:$PATH"

Any ideas on how to fix this or what's going on? I'll be eternally grateful and name my first born after you.

Please supply name with answer to collect prize.


Solution

  • Chances are when working with your broked setup you created a .yo-rc.json file in a parent directory of /yeomantest/.

    Yeoman uses .yo-rc.json to determine the root of your project. This allows users to run yo n command from anywhere inside the project directory and have them applied from the correct location.

    So, walk up your directory tree and try to find a .yo-rc.json file; then delete it. On OSx and Windows, .named files are hidden by default, you may need to make them visible from your system configuration.