-
-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yeoman init creates files in my home directory not the current directory #635
Comments
It's even worse for me. I don't see the files created at all this is the output i get murali@mmallapu-mac ~/Documents/my-work/testYeoman=>yeoman Available commands supported by yeoman:
install Install a package from the clientside package registry Certain commands such as init also provide further help via a --help flag "yeoman" template notes:
Out of the box I include HTML5 Boilerplate, jQuery and Modernizr. .. Invoke app .. Please answer the following: Writing Gruntfile.js...OK Fetching http://nodeload.github.com/h5bp/html5-boilerplate/tarball/456211dc54c7a0328485d73cf25443d210d8e1d8
Reading /Users/murali/.yeoman/cache/h5bp/html5-boilerplate/456211dc54c7a0328485d73cf25443d210d8e1d8/.htaccess...OK Fetching http://nodeload.github.com/twitter/bootstrap/tarball/v2.1.0
Reading /Users/murali/.yeoman/cache/twitter/bootstrap/v2.1.0/js/bootstrap-affix.js...OK Fetching http://nodeload.github.com/kristianmandrup/compass-twitter-bootstrap/tarball/19626592c8a2eafa8f52ee0344ef1ac30f74502f
Writing app/styles/_compass_twitter_bootstrap.scss...OK Fetching http://nodeload.github.com/jrburke/requirejs/tarball/2.0.5
Reading /Users/murali/.yeoman/cache/jrburke/requirejs/2.0.5/require.js...OK Fetching http://nodeload.github.com/jrburke/require-hm/tarball/0.2.1
Reading /Users/murali/.yeoman/cache/jrburke/require-hm/0.2.1/hm.js...OK .. Invoke mocha:app .. |
That's strange. I noticed your not running the latest yeoman version. Can you try upgrading and try again?
|
Yep I am getting the same behaviour and updating yeoman didn't solve anything (actually did fresh install yesterday) |
I'm also seeing the same behaviour as the original poster. I.e. a new install of yeoman (two days ago) and regardless of which directory I am in, when i run "yeoman init" the app folder is created in my home directory. I've tried uninstalling and reinstalling yeoman and see the same behaviour. This is using Mountain lion on Mac for what its worth. I'm desperate to get this resolved!! |
I'm on Mac OS X Lion, if that matters |
Anybody found a resolution for this yet? (Init always creating app folder in home directory) |
I just did a fresh install. Mac OSX Mountain Lion and I have the same issue. |
Could you please check if you do have a |
Yup. I have a |
Ok. This is the root of all evil ;) Basically, when a new If a @sindresorhus In case of the first |
Thanks! That fixed my problem. |
Excellent will try this tonight |
@sleeper Ya, but what if you're in a subfolder? The yeoman command should work there too. |
Right ... Is there any way to be "clever" ? Like having some clues that the found Gruntfile is really the one of the current project, and not one found up the tree ? Or make it explicit which Gruntfile is found and used ? |
We could check that the folder also has a package.json file. But that too is fragile. I wonder if this would solve it self though, with the new proposed changes. |
I have this same problem and the way I got it to work was: |
also got bitten by this, hope this gets resolved by changing output, behaviour or adding it to the FAQ |
No longer relevant. |
This issue seems to have started happening to me. I have the latest Yeoman, and running Everything seems to run correctly, but the files all show up in the wrong place. I'm not sure what I did that caused it - I did reinstall node and npm, but not sure how that would cause this issue. It seems to happen with any generator. |
Open an issue on the backbone generator you use. They may have introduced a bug. |
Well it's actually happening with any generator for me... I'm thinking it's not a bug but something I've messed up somehow but I'm not sure what it could be. |
What is the OS you use? |
former victim here, maybe you've already done this but make absolutely sure there is no Gruntfile.js in parent directories, home directory, current directory, ... |
I'm on OS X 10.9, and I've checked for an errant Gruntfile.js, no luck there either. |
Is there a |
Yes! Thank you, removing that from my home directory solved it. |
Removing .yo-rc.json did it! Thank you |
Same issue on linux, removing .yo-rc.json fixed it. How does that situation happen? |
@nagendertank Nothing else would cause this issue. You still have a |
@SBoudrias Hidden files are displaying and searched again for .yo.rc.json file and it is not showing anywhere in my system. still problem exists. |
@nagendertank You can use findup. Then just type from your project folder: It doesn't need to be in your home folder, it could be in any parent folder. Also, yeoman warns you when it decides to run outside of the current directory. Read your log and you'll see where that file is. |
@SBoudrias this is my log and Yo doctor is showing everything is fine but dont know why its creating all the files in home directory instead of project folder. Nagendras-MacBook-Pro:DatePicker nagendratank$ yo doctor Yeoman Doctor ✔ Global configuration file is valid Everything looks all right! |
It's |
@SBoudrias Thanks a lot!!!! finally its working. |
Why I run gulp build needs to be modified after the inside of the dist picture path removed. The. / can be displayed |
为什么我运行gulp build之后需要修改dist里面的图片路径删除../才可以显示出来 |
+1 on removing .yo-rc.json |
+1 Good few hours wasted diagnosing this A more obvious mention on http://yeoman.io/ (i.e. http://yeoman.io/authoring/ > http://yeoman.io/authoring/user-interactions.html ) would be useful! Thanks |
PR is welcomed if you feel the documentation is missing. FWIW, yeoman will print a warning on your console when this is happening. Also, as always, |
+1 on removing .yo-rc.json (Vagrant, Virtualbox, Ubuntu_Trusty-64) Thanks |
Its even applicable now and removing the .yo-rc.json helped. Thanks |
why does .yo-rc.json have to be a hidden file? |
@sterlingw thank you very much. removing the .yo-rc file |
@SBoudrias good job on spotting the .yo-rc.json on parent folders! Doing So if |
Would suggest the workflow for this 'feature' is changed. It just got me too. This is annoying and wrong. |
@koaning removing |
Removing |
same problem |
@TangMonk try this solution this might help : yeoman/yo#204 |
@Gardezi1 thanks, I am using |
@TangMonk awesome |
Search for .yo-rc.json by ctrl+h and delete it. change the directory to project directory and generate project , worked for me. |
.yo-rc was in the parent directory....solved it! |
Copy the .yo-rc in the folder you want to create project. It solved my problem |
I ran these commands:
cd ~/myproject
yeoman init bbb
The app and test directories were placed in my home directory
~
and not in the current directorymyproject
.The text was updated successfully, but these errors were encountered: