Skip to content

[Bug]: npm create @o3r myproject displays the wrong command to get help: "npm exec ng g --help" #2755

@divdavem

Description

@divdavem

Package name

create

Package version

11.5.6

Reproduction steps

Create a new project with npm create @o3r myproject

Current result

    Your project is now ready, you can start to generate your first packages with one of the following commands:
      npm exec ng g application
      npm exec ng g sdk
      npm exec ng g library
    ... or discover the full list of commands with "npm exec ng g --help".

Note that npm exec ng g --help does the same as npm exec --help, it does not display the help of the ng g command.

Expected result

    Your project is now ready, you can start to generate your first packages with one of the following commands:
      npm exec ng g application
      npm exec ng g sdk
      npm exec ng g library
    ... or discover the full list of commands with "npm exec ng g -- --help".

or (even better):

    Your project is now ready, you can start to generate your first packages with one of the following commands:
      npx ng g application
      npx ng g sdk
      npx ng g library
    ... or discover the full list of commands with "npx ng g --help".

Additional comments

No response

Metadata

Metadata

Labels

bugSomething isn't workinggeneratorsIssue is linked to Otter generatorstriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions