-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Description
Motivation ("The Why")
Since @ljharb has already proposed an RRFC of obey user specifier, which will be implemented at the next major version of npm@9.
In my cases, when installing a new dependency using npm install antd@conch, I want my antd to keep the exact conch dist-tag in my package.json, because this is exactly the version I need in my project. By saying version, I mean the version conch points to, not the moment I run the install command.
And in the obey user specifier RRFC, @wesleytodd suggested a new flag to support that behavior is more reasonable.
Example
Assuming the dist-tag conch of antd currently binding to the exact version 4.20.7.
How
Current Behaviour
- Running
npm install antd@conchshould save the semantic versioning into package.json, hence^4.20.7shall be saved; - Running
npm install antd@conch --save-exactshould save the exact version into package.json, hence4.20.7shall be saved.
Desired Behaviour
- Running
npm install antd@conch --forceshould save the dist-tag into package.json, henceconchshall be saved;
References
- Related to issue #5052
- Related to RRFC add "obey user specifier" RFC #547
Fuck2FactorAuth
Metadata
Metadata
Assignees
Labels
No labels