[BUG] npm install --save-exact
doesn't work in 7.7.0
#2932
Labels
Bug
thing that needs fixing
Priority 0
will get attention right away
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
npm install --save-exact <package>
addssave-prefix
topackage.json
in v7.7.0.I have tracked it down to the removal of
lib/utils/flat-options.js
(lines 166-167 in particular are important to this issue). I believe this file was removed and is intended to be replaced with the unified config library. This conditional setting ofsavePrefix
needs to be handled still.Expected Behavior:
npm should save the exact version. No prefix should be added to
package.json
.Steps To Reproduce:
npm i -g npm@7.7.0
npm init -y
npm install --save-exact typescript@4.2.3
package.json
thattypescript
is^4.2.3
Environment:
The text was updated successfully, but these errors were encountered: