-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm doesn't download version specified in the devEngines field #8004
Comments
As per #8003 (comment), it appears that npm is not going to implement
Consumers of |
I created a feature request in devEngines specification, to follow-up on this mismatch openjs-foundation/package-metadata-interoperability-collab-space#33 If behind the scenes package manager version management is important for you, it might be wise to stick with corepack at the time of comment and not onboard to |
This isn't a bug. The proposal says that package managers can choose what to do for |
Verified that this is mentioned in the specification
|
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
The devEngines proposal provides the following options for
onFail
The
[email protected]
doesn't automatically download the version requested indevEngines
$ echo '{ "name": "test-devEngines", "version": "0.0.1", "devEngines": { "packageManager": { "name": "npm", "version": "10.9.0", "onFail": "download" } } }' > package.json
$ npm install -g [email protected]
Expected Behavior
Since the value in
devEngines.packageManager.onFail
isdownload
, the project should switch to[email protected]
smoothly instead of requiring developers to install the specific version.Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: