-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Overly strict node versions specified in engine #774
Comments
At one point, "./parser/*": {
"import": "./es6/parser/*.js",
"require": "./lib/parser/*.cjs"
}, However, However, so long as |
@brettz9 |
🎉 This issue has been resolved in version 36.0.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What about |
The engine "node" is incompatible with this module. Expected version "^12 || ^14 || ^16". Got "17.0.0" |
So I encountered this artificial roadblock as well, with node 17. I don't understand why on Earth would a linter configuration care about the runtime. 🤷🏻♂️ What exact problem does this solve? Anyways, I made a fork just to overcome this issue until it is resolved. Here's the required change to use it: - "eslint-plugin-jsdoc": "^36.1.1",
+ "eslint-plugin-jsdoc": "elektronik2k5/eslint-plugin-jsdoc#patch-1", Cheers! 🍻 |
@amed : Node 15 is no longer in LTS . @elektronik2k5 : The problem it solves is that it communicates that the linter has been tested on the given version, and it prompts us to ensure our CI is checking the given engine. Planning to allow Node 17 as a part of #792 . |
Also note that the |
@brettz9 that's the thing: it doesn't only communicate, but also enforces it, unnecessarily. I use In my opinion, there are two completely different concerns here:
As such, the current use of the I suggest to follow the practice most node package maintainers have: a minimum version only. This way, users can install and use In addition, in order to not deal with non supported versions, I suggest to declare (in the README and in the GitHub issue template) which versions of node the project supports and is tested against, instead of enforcing it in any way. But don't prevent people from using your package if they know what they're doing! |
Appreciate your arguments, but I think your two items are in a sense connected for us, in that we become informed of the need to test new versions by our users if we haven't yet updated it ourselves. Rather than allowing users to encounter subtle bugs (or even potentially harmful ones) due to a breaking Node change, I believe it is better to enforce the changes, especially since we are actively maintaining the project and can update in relatively short order. If someone "knows what they're doing", they should be able to use their package manager to opt in to override the safety checks. As much as some may say that the README is required reading, I tend to believe in more intrinsically safe and agile-friendly approaches. (And there are other projects, including linting projects, which do use We've added support for Node 17 so in any case, things should work for now. |
@brettz9 how about Node 19? |
@jdforsythe : The latest version should already be working for Node 19. |
is it compatible yet with version 18? dspace@dspace:~/dspace-angular-dspace-7.4$ yarn install |
Yes, the latest version, 39.6.4 is compatible with 18 and 19... |
Hi. thanks for the response. I have yarn.lock file in which we have following: thanks
|
but no luck.
|
changed following in package.json
but following warnings and errors.
|
If there is something relevant we can do, please file a new issue pointing to a minimal test repo, but those warnings and error do not look relevant to our package. |
I'm using node
14.2.0
and encountering the following error:The engine "node" is incompatible with this module. Expected version "^12.20 || ^14.14.0 || ^16". Got "14.2.0"
I would be surprised if this package only works on
14.14.0
. Is there a way we can specify a more permissive node version restriction?Something like
14.x
would probably do the trick.The text was updated successfully, but these errors were encountered: