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
I understand that the npm registry has a cache of 5 minutes, and the npm CLI will always reuse the local cache until the cache expires.
This phenomenon causes the client to not make a new request to the registry when using the npm update <package> command, resulting in untimely updates.
$ npm update beace-tests --registry https://registry.npmjs.org --cache=mycache
0 verbose cli /Users/my/.nvm/versions/node/v20.9.0/bin/node /Users/my/.nvm/versions/node/v20.9.0/bin/npm
1 info using npm@10.1.0
2 info using node@v20.9.0
21 verbose title npm update beace-tests
22 verbose argv "update""beace-tests""--registry""https://registry.npmjs.org""--cache""mycache"
38 http fetch GET 200 https://registry.npmjs.org/beace-tests 18ms (cache hit)
39 silly placeDep ROOT beace-tests@1.0.5 KEEP for: npm-test@1.0.0 want: ^1.0.5
I had to uninstall and reinstall it or choose a specific version to install.
Expected Behavior
Can we change the behavior of the npm update command to send a request verification to the registry server, even if the local cache has not expired within 5 minutes ?
Steps To Reproduce
No response
Environment
npm: 10.1.0
Node.js: v20.9.0
OS Name: MacOS Intel
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I understand that the npm registry has a cache of 5 minutes, and the npm CLI will always reuse the local cache until the cache expires.
This phenomenon causes the client to not make a new request to the registry when using the
npm update <package>
command, resulting in untimely updates.I had to uninstall and reinstall it or choose a specific version to install.
Expected Behavior
Can we change the behavior of the
npm update
command to send a request verification to the registry server, even if the local cache has not expired within 5 minutes ?Steps To Reproduce
No response
Environment
The text was updated successfully, but these errors were encountered: