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.

Get dist-tags is not working for scopped package via rest API

See original GitHub issue

Your Environment verdaccio version: 5.4 node version: v12.22.1 package manager: npm@6.14.12 os: MacOS platform: npm

Describe the bug Can not get tags of scopped package by Rest API

Reproducing steps: -Define a module with scope, for instance @abc/def -Add some tag by npm cli -Try getting it by Rest API -> .../-/package/@abc/def/dist-tags.

Expected behavior Get a json with the tags

Actual behavior Get "error": "File not found"

Thanks.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
daniel-azucommented, Jan 12, 2022

I mean if I try to fetch http://localhost:4873/-/package/<package>/dist-tags I can get it ({ "name-squat": "0.0.0", "latest": "1.0.0" }) but if I try to get scopped package like http://localhost:4873/-/package/<scopped>/<package>/dist-tags I get: { "error": "File not found" }

1reaction
daniel-azucommented, Jan 11, 2022

Updated by the template

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use semantic versioning,work with scoped packages ...
A distribution tag supplements semantic versioning. You should use them to organize and label different versions of packages.
Read more >
Adding dist-tags to packages - npm Docs
Publishing a package with a dist-tag · On the command line, navigate to the root directory of your package. cd /path/to/package · Run...
Read more >
npm packages in the Package Registry - GitLab Docs
Scoped packages begin with a @ have the format of @owner/package-name . ... If you get this error, one of the following problems...
Read more >
Upload artifact with tag other than "latest" to Artifactory NPM repo
Apparently, you cannot manage NPM tags in Artifactory through the REST API. There is a default handling for the latest tag, ...
Read more >
[NEXUS-24457] npm package metadata dist-tags section can ...
Expected · npm dist-tags command should not get 500 response · npm install commands which rely on dist-tags being non-empty to resolve packages...
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