Skip to content

"npx aem --version" reports version from project package.json, not aem itself #2654

@alexkli

Description

@alexkli

Description
aem --version reports the incorrect version if installed as dev dependency inside a project and run via npx.

To Reproduce
Steps to reproduce the behavior:

  1. Install as dev dependency inside a project: npm install -D @adobe/aem-cli
  2. Run using npx and check version: npx aem --version
  3. Bug: Prints the version from the local project's package.json, e.g. 0.0.1.

Expected behavior
Should report the actual correct aem cli version, e.g. 16.16.13 as of this bug report.

Screenshots
If applicable, add screenshots to help explain your problem.

Version:
Reproduced with 16.16.13 and 16.10.46.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions