angular 7.0.5 ng new doesn't ask Would you like to add Angular routing?.... etc

Elleiton picture Elleiton · Nov 10, 2018 · Viewed 7.1k times · Source

Someone could guide me to know why I can not generate a new project with the new version of angular 7

Desired result:

ng new firebase-auth ? Would you like to add Angular routing? No ? Which stylesheet format would you like to use? CSS

obtained result:

 $ ng new appAtlas
    CREATE appAtlas/angular.json (3786 bytes)
    CREATE appAtlas/package.json (1316 bytes)
    CREATE appAtlas/README.md (1025 bytes)
    CREATE appAtlas/tsconfig.json (408 bytes)
    CREATE appAtlas/tslint.json (2837 bytes)
    CREATE appAtlas/.editorconfig (245 bytes)
    CREATE appAtlas/.gitignore (503 bytes)
    CREATE appAtlas/src/favicon.ico (5430 bytes)
    ....
    CREATE appAtlas/e2e/src/app.po.ts (208 bytes)
    npm WARN deprecated [email protected]: CircularJSON is in maintenance only, fl                                   atted is its successor.

Angular cli version

$ ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 7.0.5
Node: 10.13.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.10.5
@angular-devkit/core         7.0.5
@angular-devkit/schematics   7.0.5
@schematics/angular          7.0.5
@schematics/update           0.10.5
rxjs                         6.3.3
typescript                   3.1.6

Node, npm version

$ node -v
v10.13.0

$ npm --version
6.4.1

Answer

cs_pupil picture cs_pupil · Aug 26, 2019

Have you tried another terminal?

I noticed I get the interactive prompts when I use Windows Command Prompt (CMD), but I don't get them in Cygwin. Even if I use ng new new_project --interactive=true, Cygwin just skips the prompts and goes with the default options similar to your screenshot.