generator-angular icon indicating copy to clipboard operation
generator-angular copied to clipboard

Cannot deselect Sass/Compass when running 'yo angular'

Open miikeat opened this issue 8 years ago • 8 comments

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

miikeat avatar Feb 25 '16 10:02 miikeat

What happens if you type N or No?

eddiemonge avatar Feb 25 '16 19:02 eddiemonge

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

miikeat avatar Feb 28 '16 12:02 miikeat

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

eddiemonge avatar Feb 29 '16 04:02 eddiemonge

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...

miikeat avatar Feb 29 '16 08:02 miikeat

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

eddiemonge avatar Feb 29 '16 18:02 eddiemonge

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

LasaleFamine avatar Mar 02 '16 19:03 LasaleFamine

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

mzvast avatar Apr 24 '16 14:04 mzvast

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~ :)

mzvast avatar May 05 '16 13:05 mzvast