An editor made a rather extensive edit of my post that I didn't like
You "not liking" the edit is not relevant. What is relevant is that questions are on-topic, not duplicates, clear, focused, specific, understandable, written in English, useful for others, etc. - i.e., the points covered by the close box reasons and by upvote/downvote reasons.
They removed my summary of the six actions I had tried that didn't work.
In this "summary", one of the things you say you tried that didn't work is "manually inserting "nth-check": "^2.1.1",
under dependencies
in package.json
". But in your self answer, you describe adding "overrides": { "nth-check": "^2.1.1" }
to the package.json
, which sounds pretty similar albeit not actually the same thing. So it's not very useful for understanding the question.
We don't actually want questions to contain an explicit "I tried XYZ things and they didn't work" section - because that un-focuses the question. It tempts people to identify and answer additional, implicit questions: "Why didn't X work? Why didn't Y work? Why didn't Z work?" If it is useful to answer such questions, they should be asked explicitly and separately.
We do typically want questions to illustrate that you tried XYZ - not because it makes you more deserving of an answer (it doesn't, and that's beside the point anyway because this is not a discussion forum, and the answer to the question is not just for you), but because it helps to understand what the question actually is (i.e., to pre-empt simple "have you tried X/Y/Z?" attempts at answering). There are, however, usually much better ways to do this than just saying it. Show, don't tell.
And especially don't do both. If you are going to show us the result of npm audit fix
later in the question, don't duplicate the "I tried using npm audit fix
" message at the start.
They removed the package.json file I had included, without which it is impossible to reproduce my example (with the exact package version(s) I used).
Several points here.
What VLAZ said in the comments (on the question here) about reproducibility. I'm not very familiar with the technology, but I recognize this version-specification syntax (it's also used in the Python ecosystem).
What jonrsharpe told you in the comments (on one of your answers here) about reproducibility. I'm not familiar with the technology, but it definitely seems credible that create-react-app
would fill in a starter/template package.json
and that this would be sufficient for demonstrating the problem.
Starting with your initial post, you included a reference link for the concept of a MRE. Do not do that. You are putting meta content into the post. Meta content does not belong in the main space. That is why there is a separate meta site. By writing something like "... is all it takes to have a minimal, complete and verifiable example." in a question, and linking it to the policy, you come across as bitter that a previous question was rejected for lacking an MRE.
A minimal reproducible example should be minimal. That means, it does not have to reflect the problem you are actually wrestling with in your project ("6 high-severity vulnerabilities"). It needs to reflect the problem that you need to understand in order to get things working (i.e., any one of those vulnerabilities).
The question you are asking is fundamentally a how-to question ("how do I make it do X?"), not a why question ("why does it do Y instead?"). As such, the concept of MRE does not apply strongly. (The corresponding closure reason used to state, emphasis mine: "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself.".) For how-to questions, what we need mainly is a clear, specific, unambiguous specification for what needs to happen.
"force npm install to use nth-check@2.1.1" seems pretty straightforward to me already.
Most of all, they removed the very question I was asking: "How can I force package.json
to use version 2.1.1 of nth-check
?"
Factually incorrect. You had the actual question written twice - the second time, as the fourth section heading (!). This second copy was preserved, because it is in a place that makes sense for the flow of the edited question.
The edit also made several other changes which you neglected to mention, which are clearly positive and in line with policy. In particular:
It removes excessive formatting: a question should not have sections. Sections belong in answers for questions that are already pushing the limits of what is reasonable to fit into a single, coherent question.
It removes noise. Especially if you are already worried that the question is long, what do you hope to accomplish by writing "This is a long post, but"? Right off the top, you have increased the length even more, with content that is directly contrary to policy. Please remember that this is not a discussion forum, and thus such phrases do not belong in questions or answers (as such, it helps not to think of the question as a "post"). That is just one example of many.
It removes excessive exposition. Do not tell us that you "ran... npm --version
, which responded 9.6.4
" unless you have specific reason to believe that the NPM version is relevant to the problem. Even then, it would be better to just say "I am running NPM version 9.6.4". Similarly, do not tell us about how you installed NPM, unless you have a specific reason to believe that something might have gone wrong with the installation. Given that you were able to get NPM to report a version number, and then perform other normal tasks, this seems unlikely.
It fixes the formatting of the npm audit fix
results.
It removes images of command output that are redundant with the text. You should already know not to do this. For one thing, it's right there in How to Ask, in the same bullet-point list that tells you about MREs. For another, your immediately previous, recent Meta question was on that exact topic
It removes a completely useless reference section that duplicates the inline links. How is this supposed to help understand what the question is?
It makes the question actually readable inductively (although it is still very long after that heroic effort). Each paragraph leads into the next, rather than it being broken down hierarchically. Again: questions should not have section headings. Those are what you use when you want people to be able to jump around, find the specific information they are looking for, and skip the rest.
That makes sense for answers - because different people with the same question will be missing different conceptual pieces of the puzzle, and not necessarily all of them. It does not make sense for questions because the entire point of this editing exercise is that the question should contain everything that is necessary to make it answerable, and only those things. Therefore, people reading questions should not be skipping around in them, should not be tempted to skip around in them (because of the question length), and should not be aided in skipping around (via section headings).
Now that I have addressed the substance of the revisions involved in the rollback war, I would like to say a few things about your conduct.
I note that you have rolled back yet again, while you did not at any point make any attempt to improve the rolled-back versions - not even to remove the images, which surely you can clearly see are completely redundant with the text. You also don't seem to be engaging with the other editor in good faith in the comments, and you come across as bitter and sulking about how the question is "not mine any more" - hint: it was never yours; that is not how the site works, which is why the automatic CC licensing is necessary.
Then, your reason for rejecting a duplicate closure is that the other question doesn't meet your personal standards for an MRE. Even if that argument held water (see above about the necessity for MREs generally), that problem should be fixed by instead editing the target to improve it by adding an MRE (and making sure it is actually minimal). Questions are still duplicates if they are substantially still answering your question - i.e., explaining to you how to modify package.json
in order to force NPM to use a specific version of whatever package, according to whatever is special about that package that makes ordinary methods not work.
I also noticed that you deleted your own self-answer for the question after getting into a similar rollback war on that. (The answer you gave matched the accepted answer on one of the proposed duplicates; the same technique is used to solve the same fundamental problem; thus the question is a duplicate.)
Generally speaking, you come across as long-winded, argumentative and egotistical. The way that you have used CW answers on this and your previous Meta question is also rather confusing. It comes across that you are trying to feign some community agreement with you, despite that the votes say otherwise.
^
which means that runningnpm install
with a dependency like^1.2.3
might actually install version 1.5.17. Depends on when the installation takes place - the higher most version matching the major part of the number (the first one) would be installed.2.1.1
ofnth-check
?" which seems to be equivalent (maybe even better due to generality) to "How can I forcepackage.json
to use version2.1.1
of nth-check? ". Is the change from "package.json
" to "NPM" really sufficient to say the question was removed?package.json
to do anything, it's a static text file. The behaviour is the file plus whatever's interpreting it, which in this case was NPM (but could be e.g. Yarn). And I wouldn't have any problem with a minimal package file instead of the command, but what was posted wasn't one (just the one that happened to be created by that command).