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:
- Install as dev dependency inside a project:
npm install -D @adobe/aem-cli
- Run using
npx and check version: npx aem --version
- 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.