templates that have a failing engines key in package.json, and version is pre-release, cannot be installed (using latest
dist-tag)
#694
Labels
bug
Something isn't working
Template: https://github.com/adobe/commerce-events-ext-tpl
Repro Steps
[email protected]
or greater and[email protected]
or greateraio app init
) ornpm i
Error:
Expected Behavior
The template/module can be installed.
Actual Behavior
The template/module cannot be installed and results in an error.
Investigation
[email protected]
or greater has different behavior due to a bug fix. Users may have been relying on buggy behavior which has been fixed now.The template above has an engines key of
^14
and is a pre-release version1.0.0-beta.9
which results in the error.Installing the module using a specific version, will not result in the error, there is an error only if it's using the
latest
dist-tag.If I tested
npm i
of a module that fails the engine check onnode-22
and isnot a pre-release
, it does not result in an error. Example module.Fix
Remove the "engines" key from the template's package.json or update the engines key to a version that will pass on nodes >= 20, and/or update the version to a non-pre-release version.
Supporting Info
The text was updated successfully, but these errors were encountered: