-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
[New Doc 📑]: specify which version of npm is required to run npm install
.
#427
Comments
because there is no direct technical requirement, I don't think we should require from user that only the latest versions are supported, while in fact older work like a charm |
Are we sure we don't want to require developers to stick to a version when in fact CI uses a particular one?
Should then Regarding |
yeah, so I just think it's better to improve testing and test on older versions to make it easier for folks that are in some enterprise are stuck with some old version. according to https://nodejs.org/en/about/releases/ Node 12 is still there in maintenance until April 2022. but yeah, I'm talking here specifically about node, about npm do not have much of an opinion because I did not have time to really read about lockfileVersion1 vs lockfileVersion2 |
The point here is that I ran this simple |
yeah, this part I agree, it is confusing, just don't think solution should be about restricting to certain npm/node. It is not only about this repo, also other node projects really. Interesting what others think |
Pinging the rest of code owners in a first attempt on getting feedback about this issue @fmvilas @magicmatatjahu @jonaslagoni |
@smoya you have right. Someone changes a single line and suddenly has several thousand changes in |
An very recent example of this issue, that shows that not only applies to this repo but to any other that uses npm: There was no new addition or removal of packages, but still a big diff in |
I'd not force to a specific version of npm but would recommend it for contributors. If it works with an older version of npm we should not enforce it IMHO. Only contributors would care about |
Exactly, the issue only affects developers. That's why I mention that it is an issue when running Besides clarifying this in the documentation, Isn't this |
I never used I think you brought important topic of |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
@magicmatatjahu would you mind removing |
@smoya just to clarify, goal of this doc is just to write in https://github.com/asyncapi/parser-js#develop |
After reading all the comments on this issue again, I think that's exactly what we need. |
/gfi docs |
I think we need something more. Docs is great, but we need a GH Action that will validate it on a PR level -> https://github.com/asyncapi/parser-js/blob/master/package-lock.json#L4 -> a result of the release from yesterday 🤷🏼 |
🎉 This issue has been resolved in version 1.17.0-next-spec.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 1.17.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 2.0.0-next-major.18 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What Dev Docs changes are you proposing?
Current
package-lock.json
file setslockfileVersion
to2
. This version is only available starting fromnpm 7
.In the case you run
npm install
with a version lower than 7, it will change the version of thepackage-lock.json
file to1
.In order to keep consistency, I think we should definitely specify that this project requires npm version >= 7 and node version >= 14 (as per our CI https://github.com/asyncapi/parser-js/blob/master/.github/workflows/if-nodejs-pr-testing.yml#L33). In fact, better to say the best scenario is that the developer sets exactly the same versions as we do so we ensure everything works as expected.
Maybe we could add a
. nodeenvrc
file to set a virtual environment for npm. See https://github.com/ekalinin/nodeenv.Code of Conduct
The text was updated successfully, but these errors were encountered: