Skip to content

Unknown option: '--verbose' #11086

@mnicic

Description

@mnicic

Versions

Angular CLI: 6.0.7
Node: 8.9.0
OS: win32 x64
Angular: 6.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.7
@angular-devkit/build-angular     0.6.7
@angular-devkit/build-optimizer   0.6.7
@angular-devkit/core              0.6.7
@angular-devkit/schematics        0.6.7
@angular/cli                      6.0.7
@ngtools/webpack                  6.0.7
@schematics/angular               0.6.7
@schematics/update                0.6.7
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.8.3

Repro steps

  • ng new myapp
  • ng serve --verbose

Observed behavior

Unknown option: '--verbose'

Desired behavior

Expect to serve the app successfully.

Mention any other details that might be useful (optional)

It work's on the following configuration:

Angular CLI: 6.0.0
Node: 8.9.0
OS: win32 x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

Activity

ajaypbarokar

ajaypbarokar commented on Jun 1, 2018

@ajaypbarokar

@mnicic --verbose option is not available with ng serve command in angular CLI 6.
Please find below option that are available in Angular CLI 6

ng serve -h
usage: ng serve [options]
options:
--aot
Build using Ahead of Time compilation.
--base-href
Base url for the application being built.
--browser-target
Target to serve.
--common-chunk
Use a separate bundle containing code used across multiple bundles.
--configuration (-c)
Specify the configuration to use.
--deploy-url
URL where files will be deployed.
--disable-host-check
Don't verify connected clients are part of allowed hosts.
--eval-source-map
Output in-file eval sourcemaps.
--hmr
Enable hot module replacement.
--hmr-warning
Show a warning when the --hmr option is enabled.
--host
Host to listen on.
--live-reload
Whether to reload the page on change, using live-reload.
--open (-o)
Opens the url in default browser.
--optimization
Defines the optimization level of the build.
--poll
Enable and define the file watching poll time period in milliseconds.
--port
Port to listen on.
--prod
Flag to set configuration to "prod".
--progress
Log progress to the console while building.
--proxy-config
Proxy configuration file.
--public-host
Specify the URL that the browser client will use.
--serve-path
The pathname where the app will be served.
--serve-path-default-warning
Show a warning when deploy-url/base-href use unsupported serve path values.
--source-map
Output sourcemaps.
--ssl
Serve using HTTPS.
--ssl-cert
SSL certificate to use for serving HTTPS.
--ssl-key
SSL key to use for serving HTTPS.
--vendor-chunk
Use a separate bundle containing only vendor libraries.
--watch
Rebuild on change.

mnicic

mnicic commented on Jun 1, 2018

@mnicic
Author

Hm... The official documentation says that the command still exists. See this wiki page.

Also, I did use it in previous revision of Angular CLI 6 (see the end of my question).

trojanc

trojanc commented on Jun 4, 2018

@trojanc

Same with ng build projectName --verbose

ng --version

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

Angular CLI: 6.0.7
Node: 8.10.0
OS: linux x64
Angular: 6.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.6.5
@angular-devkit/build-angular      0.6.5
@angular-devkit/build-ng-packagr   0.6.5
@angular-devkit/build-optimizer    0.6.5
@angular-devkit/core               0.6.7
@angular-devkit/schematics         0.6.7
@angular/cli                       6.0.7
@ngtools/json-schema               1.1.0
@ngtools/webpack                   6.0.5
@schematics/angular                0.6.7
@schematics/update                 0.6.7
ng-packagr                         3.0.0-rc.5
rxjs                               6.2.0
typescript                         2.7.2
webpack                            4.8.3

Running ng build without specifying a project name works ng build --verbose
When specifying a project name it no longer works

ng build my-lib --verbose
Unknown option: '--verbose'

Why would I want more logging for an already verbose output...we'll, when building my library the build silently dies and I have no idea what is wrong.. "The build worked fine yesterday..."

ng build my-lib
Building Angular Package

Command is done and nothing is built

MarcelMalik

MarcelMalik commented on Jun 7, 2018

@MarcelMalik

Same with ng build projectName --verbose and with ng build projectName --show-circular-dependencies.

But ng build --help shows them as options:

usage: ng build <project> [options]
options:
...
  --show-circular-dependencies
    Show circular dependency warnings on builds.
...
  --verbose
    Adds more details to output logging.
...
pavel-agarkov

pavel-agarkov commented on Jun 12, 2018

@pavel-agarkov

but you can still specify it in angular.json file:

"options": {
    "verbose": true
}
mnicic

mnicic commented on Jun 12, 2018

@mnicic
Author

@pavel-agarkov Right, it's another approach. But it's not solution for me.

vilanz

vilanz commented on Sep 3, 2018

@vilanz

@pavel-agarkov's suggestion can't be used in a library. options: verbose is valid only on applications.

ng build --verbose (using default project, @trojanc's suggestion) is not working for me on @angular/cli 6.1.5.

self-assigned this
on Sep 26, 2018
added a commit that references this issue on Sep 26, 2018
1bf9634
added a commit that references this issue on Sep 27, 2018
5baa758
added a commit that references this issue on Oct 6, 2018
4c73ce8
angular-automatic-lock-bot

angular-automatic-lock-bot commented on Sep 8, 2019

@angular-automatic-lock-bot

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @MarcelMalik@filipesilva@trojanc@alan-agius4@pavel-agarkov

    Issue actions

      Unknown option: '--verbose' · Issue #11086 · angular/angular-cli