angular 7.0.5 ng new 不问你想添加 Angular 路由吗?....等

标签 angular npm angular-cli angular7

有人可以指导我知道为什么我不能使用新版本的 angular 7 生成新项目

期望的结果:

ng 新的 firebase-auth ?你想添加 Angular 路由吗?不 ?您想使用哪种样式表格式? 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.

Angular 命令行版本

$ 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

节点,npm 版本

$ node -v
v10.13.0

$ npm --version
6.4.1

最佳答案

您尝试过其他终端吗?

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

关于angular 7.0.5 ng new 不问你想添加 Angular 路由吗?....等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53244056/

相关文章:

angular - 触发 NavigationCancel 事件的所有原因可能是什么?

angular - 不再需要core-js了吗?

angular - ng 构建抛出错误 : "Tried to find bootstrap code, but could not."

javascript - npm 无法安装 scrypt。 Node gyp 重建

visual-studio-2015 - 'ng build' 不在 Visual Studio 预生成事件中运行

css - 如何使用 Angular Material 更改 matInput 字段的占位符和输入字段的颜色

angular - 导入 Angular 2+ 的传单

Angular 2 组件 - 如何导出接口(interface)?

node.js - 使用文件上传将 CSV 转换为 JSON

javascript - Node.js 用户注册数据存储在哪里