yeoman / generator-angular

Yeoman generator for AngularJS
http://yeoman.io
5.73k stars 1.44k forks source link

Cannot deselect Sass/Compass when running 'yo angular' #1279

Open miikeat opened 8 years ago

miikeat commented 8 years ago

After answering the first question this is what I see:

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |    Welcome to Yeoman,    |
   `---------´   |   ladies and gentlemen!  |
    ( _´U`_ )    '--------------------------'
    /___A___\
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

Out of the box I include Bootstrap and some AngularJS recommended modules.

? Would you like to use Gulp (experimental) instead of Grunt? (y/N)
? Would you like to use Gulp (experimental) instead of Grunt? No
? Would you like to use Sass (with Compass)? Yes
? Would you like to include Bootstrap? (Y/n)

I don't have the possiblity to say no to Sass/Compass

Same picture when I say Yes to Gulp:

Out of the box I include Bootstrap and some AngularJS recommended modules.

? Would you like to use Gulp (experimental) instead of Grunt? (y/N) y
? Would you like to use Gulp (experimental) instead of Grunt? Yes
? Would you like to use Sass? Yes
? Would you like to include Bootstrap? (Y/n)

Im currently on a Windows 10 machine and I tried it in Powershell, cmd, git-bash... node --version says 5.0.0 but it should be at least 5.6.0? rest of the dependencies should be current version as I just ran: npm install -g grunt-cli bower yo generator-karma generator-angular

eddiemonge commented 8 years ago

What happens if you type N or No?

miikeat commented 8 years ago

When I type Y/Yes/N/No then i just answer the question about Bootstrap.

eddiemonge commented 8 years ago

So if you say no, it should not put Sass things in your gruntfile. Bootstrap is separate

miikeat commented 8 years ago

I do not get the possibility to give an answer to this question!

This is the picture when i execute yo angular:

Out of the box I include Bootstrap and some AngularJS recommended modules.

? Would you like to use Gulp (experimental) instead of Grunt? (y/N) 

Here i can answer the question, but as soon as i press [ENTER] this is what I see:

Out of the box I include Bootstrap and some AngularJS recommended modules.

? Would you like to use Gulp (experimental) instead of Grunt? (y/N) y
? Would you like to use Gulp (experimental) instead of Grunt? Yes
? Would you like to use Sass? Yes
? Would you like to include Bootstrap? (Y/n)

For some reason on Windows yo repeats the answered question ("y" was my input) and writes the full answer after it (I did not write "Yes") For Sass I don't get the chance to answer this question and it is always answered with "Yes" automatically. From the Bootstrap question on i do have then the chance to answer all questions...

eddiemonge commented 8 years ago

I want to say this is an inquirer issue but since it involves windows, that makes it infinitely harder to troubleshoot. ill try to get around to it at some point but probably not very soon

LasaleFamine commented 8 years ago

Same problem here on Windows both with classic prompt and Power Shell. Everything good on Linux.

mzvast commented 8 years ago

Anyone figured out how to fix it? Linux works well,but on windows CMD,PowerShell,GitBash all fail.

mzvast commented 8 years ago

I've figure it out,which on my PC was caused by network proxy.

I can reproduce it by proxy global network. And the solution is to bypass node.exe when target hosts is localhost.

Maybe can help you guys~ :)