angular 7.0.5 ng new不会询问您是否要添加Angular路由?

Ell*_*ton 5 npm angular-cli angular angular7

有人可以指导我了解为什么我无法使用新版本的angular 7生成新项目

所需结果:

在此处输入图片说明

ng new firebase-auth?您想添加角度路由吗?不是吗 您想使用哪种样式表格式?的CSS

获得的结果:

 $ 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 circular-json@0.5.9: CircularJSON is in maintenance only, fl                                   atted is its successor.
Run Code Online (Sandbox Code Playgroud)

Angular CLI版本

$ 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
Run Code Online (Sandbox Code Playgroud)

节点,npm版本

$ node -v
v10.13.0

$ npm --version
6.4.1
Run Code Online (Sandbox Code Playgroud)

cs_*_*pil 17

您是否尝试过其他终端?

我注意到在使用 Windows 命令提示符 (CMD) 时会收到交互式提示,但在 Cygwin 中没有收到。即使我使用ng new new_project --interactive=true,Cygwin也会跳过提示并使用类似于您的屏幕截图的默认选项。