Skip to content

Cannot generate ng2 with ng new #5648

@jderus

Description

@jderus

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.0.0
node: 7.4.0
os: win32 x64

Repro steps.

Cannot generate ng2 project with ng new.
Existing documentation and help is misleading and inconsistent.

EG:

  1. Changelog says that ng new has default of ng4. Does not show how to override that default.
  2. wiki shows that --ng4 default value is set to false. Conflict with Typescript Broccoli Plugin doesn't pass error message to broccoli #1 and isn't correct. Explicitly invoking this option with ng new does not generate a ng2 project
    See: https://github.com/angular/angular-cli/wiki/new
  3. ng new -- help does not reference the option --ng4 nor specify how to override the default of ng4 generation.

Desired functionality.

If ng-cli's ng new command will continue to support ng2 generation, please document how to do so, and make the documentation consistent. If not, fix up the docs.

Mention any other details that might be useful.

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