Closed
Description
Current Behavior:
npm install --save-exact <package>
adds save-prefix
to package.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 of savePrefix
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 [email protected]
npm init -y
npm install --save-exact [email protected]
- Note in
package.json
thattypescript
is^4.2.3
Environment:
- OS: Manjaro 21.0
- Node: 10.24.0
- npm: 7.7.0