-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
remove engines.npm from package.json #3073
Comments
@pabigot Are you using AWS Lambda? |
@pabigot Also, is there anything other than a warning? In other words, is this the only "symptom"? |
See #3149 as well |
I'm not entirely sure what the intent should be. Only the latest v4.x is maintained, so perhaps the |
or we could add 4.0.0 to the build matrix... |
No, I'm not using lambda. It is a warning, but that warning suggests the claim of supporting >=4 (rather than >=4.6.2) is not justified: if I saw this in a production dependency I'd be much more concerned that it reflected a real failure to support. Until action occurs on #3149 my preferred path is that the npm engine dependency be reduced to match the documented behavior and 4.0.0 be added to the build matrix. I don't think it makes sense only support the latest release in any LTS series. You'd spend a lot of time updating dependencies and annoying users who don't want to update their infrastructure every couple weeks. |
From what I understand, Given that a version of I am proposing removal of the |
@boneskull I don't see any issues with the solution in #3154. |
Prerequisites
common mistake
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend avoiding the use of globally installed Mocha.Description
Node 4.0 introduced an engine dependency on npm >= 2.15.11. The blog post says this is because that version shipped with Node.js v4.0.0.
This is incorrect. Nodejs v4.0.0 shipped with npm 2.14.2. Nodejs v4.5.0, which I have to use, shipped with 2.15.9.
It is true that the current Nodejs 4 (v4.8.4 at time of writing) does use 2.15.11, but that update wasn't done until v4.6.2.
Please consider reducing the dependency to 2.14.2, if your intent is to support all Nodejs 4 releases.
Steps to Reproduce
Expected behavior: Installation of mocha 4.0.1 under nodejs 4.5.0 emits no diagnostics.
Actual behavior:
Reproduces how often: Every time
Versions
Additional Information
The text was updated successfully, but these errors were encountered: