Skip to content

When running ng version, what does [...] mean? #4938

@divyang-joshi

Description

@divyang-joshi

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 10

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

@angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.30]

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Run ng version

Mention any other details that might be useful.

  1. Running ng version outside the project returns @angular/cli: 1.0.0-beta.32.3
  2. Running npm list @angular/cli returns @angular/cli@1.0.0-beta.32.3.

So where is this [1.0.0-beta.30] coming from, or what does it mean? I have a script setup that does a few things based on the versioning but this threw me off.

Edit, the script does do something like this, if there's a version mismatch. So this still happens after uninstall/re-install:

npm uninstall -g angular-cli @angular/cli
npm cache clean && npm install -g @angular/cli@ + supportedVersion
rd /s /q node_modules (delete folders + files)
rd /s /q dist
npm install --save-dev @angular/cli@ + supportedVersion
npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions