question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cached version not refreshed when uplink's version updated

See original GitHub issue

Cached version not refreshed when uplink’s version updated

To Reproduce

  • publish to uplink
  • query package info at local
  • deprecate uplink’s package version
  • local version should also be deprecated but not

This behavior seems like by design. (https://github.com/verdaccio/verdaccio/blob/master/src/lib/metadata-utils.ts#L22)

What’s the purpose of this and how should we refresh the local cache?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Amoritescommented, Oct 20, 2020

@Amorites what do you mean with deprecate uplink's package version? Deprecate on npmjs for instance? Just want to be sure I understood correctly.

Yes, for example, the package name is mylib.

  • npm publish --registry https://registry.npmjs.org/
  • npm info mylib --registry http://localhost:4873
  • npm deprecate mylib@1.0.0 deprecate-it --registry https://registry.npmjs.org/
  • The results of npm info mylib --registry http://localhost:4873 and npm info mylib --registry https://registry.npmjs.org/ are different.
0reactions
zhangschunfengcommented, Aug 19, 2021

root@a3cb7a1ace6f:/# npm config list ; cli configs metrics-registry = “http://172.48.52.81:4873/” scope = “” user-agent = “npm/6.14.12 node/v12.22.1 linux x64”

; userconfig /root/.npmrc registry = “http://172.48.52.81:4873/

; node bin location = /usr/bin/node ; cwd = / ; HOME = /root ; “npm config ls -l” to show all defaults.

root@a3cb7a1ace6f:/# npn install xlsx@^0.17.1 bash: npn: command not found root@a3cb7a1ace6f:/# npm install xlsx@^0.17.1 npm ERR! code ETARGET npm ERR! notarget No matching version found for xlsx@^0.17.1. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn’t exist.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-08-19T08_57_40_572Z-debug.log root@a3cb7a1ace6f:/# exit

uplink’s version updated xlsx@^0.17.1. is exist ,but i cant got

How to solve or circumvent

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outlook (cached mode) not updating folders from Exchange
I'm encountering this issue more and more in my daily work-- it affects different versions of Exchange on premises, hosted Office 365/Outlook.
Read more >
Clear Caches Ahead, or, “Why Aren't My Changes Showing ...
To see your changes, all you need to do is clear your cache. While you can do this by clearing your browser data,...
Read more >
Website not updating when content changes in Cache-First ...
The updated content will only update only if i delete old cache and reload the page.
Read more >
Advisory: HP Virtual Connect - Fast MAC Cache Failover May ...
Any HP c-Class BladeSystem running HP Virtual Connect Firmware Version 3.30 or 3.51. RESOLUTION. Upgrade to Virtual Connect Firmware Version ...
Read more >
Refresh Interval - an overview | ScienceDirect Topics
Once established, records are updated using one of two methods. The first, a record refresh, is performed when a host checks in and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found