-
-
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 npm upgrade in .travis.yml #1869
Comments
okay, this is not possible due to the |
so, theoretically, we are fine with npm pre-1.3.7 in production--i.e., but npm pre-1.3.7 is not supported for development: $ git clone https://github.com/mochajs/mocha.git; cd mocha; npm install |
cc @dougwilson |
So, is |
And of course, if you actually do need |
Looks like it is at least used in your |
Is it a big deal though? Do you need to develop Mocha on a system with an old npm version? |
I have pushed code for 2.3.2 but haven't published yet |
I have to be able to install mocha to test on the systems that I support. I'm not developing on those systems, but mocha is the test runner, so without being able to install mocha, I cannot run any tests against the systems that will be running production code, which would make using mocha not very useful to me. |
Well, you can still do that (in theory), you just can't |
No, you're not missing anything. The main problem right now is that if you cannot do the install on Travis with an old version of npm, you'll never notice when a change breaks the install process for production users. |
In other words, it's generally in your favor for your CI process to prevent the need to make commits like c7a8fed , but the current CI process in this repository does not assist in identifying breaking changes. |
Right. I'd consider a solution similar to what you posted above (https://github.com/dougwilson/nodejs-depd/blob/master/.travis.yml#L13-L15). This is fine for CI, but if a user is running
I'm partial to 2 since it avoids modifying the dependencies or tests themselves. |
What problem will they run into? If you clone that repo and run the tests, you'll see there is no issue running them at all (the suggestion consisted of two different areas).
That's my original suggestion, the one you referenced with the link to the .travis.yml file :)
I tried this in the past with my modules but was never able to get the downgrade to work. This means that I would not be successful in implementing this for you, so the implementation would have to be left on your shoulders :( |
currently we run
scripts/ensure-compatible.npm.sh
to upgrade npm if it's old. since we want to retain support for old npm versions (for now), let's not do that.The text was updated successfully, but these errors were encountered: