You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the heels of #1849, npm v7.0.0-rc.0 does not include my configured ^ save prefix in devDependencies version when running an npm i <dep>@versionOrTag.
Expected Behavior:
npm i <dep>@versionOrTag should include my configured ^ save prefix on the updated version in package.json devDependencies
Steps To Reproduce:
Install npm v7.0.0-rc.0
npm i <dep>@prev-version where prev-version is the exact number version of a previous version
3). observe no save prefix in package.json devDependencies for <dep>
4). npm i <dep>@latest
5). observe no save prefix in package.json devDependencies for <dep>
Environment:
Node: v10.15.3
NPM: v7.0.0-rc.0
The text was updated successfully, but these errors were encountered:
I tried with both an .npmrc file in the project folder, and my ~/.npmrc file. I tried with both setting save-prefix=~ and save-prefix=^ and also with no save-prefix (which fell back to the default which is save-prefix=^
In each case I started with a package.json with no dependencies. Then ran
Current Behavior:
On the heels of #1849, npm v7.0.0-rc.0 does not include my configured
^
save prefix in devDependencies version when running annpm i <dep>@versionOrTag
.Expected Behavior:
npm i <dep>@versionOrTag
should include my configured^
save prefix on the updated version in package.json devDependenciesSteps To Reproduce:
npm i <dep>@prev-version
whereprev-version
is the exact number version of a previous version3). observe no save prefix in package.json devDependencies for
<dep>
4).
npm i <dep>@latest
5). observe no save prefix in package.json devDependencies for
<dep>
Environment:
Node: v10.15.3
NPM: v7.0.0-rc.0
The text was updated successfully, but these errors were encountered: