Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 765
Elleiton Avatar asked Nov 10 '18 22:11

Elleiton


People also ask

Would you like to add angular routing yes or no?

At the basic level, routing allows angular to display different "pages" or components. You probably want to have it, if you want to navigate across pages in your application. It shouldn't hurt anything if you add it, but don't use it.

What command will create a new angular app with a root routing module?

ng newlink. Creates a new Angular workspace.

What is angular routing?

Routing in Angular allows the users to create a single-page application with multiple views and allows navigation between them. Users can switch between these views without losing the application state and properties.


1 Answers

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.

like image 164
cs_pupil Avatar answered Sep 21 '22 08:09

cs_pupil