Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web UI and npm access isn't working in v5 with non-standard config file location #2204

Closed
hybridherbst opened this issue Apr 26, 2021 · 4 comments

Comments

@hybridherbst
Copy link

hybridherbst commented Apr 26, 2021

Describe the bug

  • npm search hitting a Verdaccio v5 backend seems to return nothing.
  • Also, the Web UI is broken for me after updating from 4.12 to 5.0.
  • My assumption is that something is now broken with config files that are not in /.config, but that's just a guess (seems to be the only specialty about our setup).

To Reproduce

  • Have your configuration file in a non-standard location, such as /verdaccio/config.yaml, and use an url_prefix, e.g. /my-prefix/
  • Run verdaccio -c /verdaccio/config.yaml
  • From a local machine, run an npm search against that endpoint OR
  • Open the Web UI

Expected behavior

  • Web UI shows a list of packages
  • npm search returns something
  System:
    OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver)
    CPU: (1) x64 Intel Xeon Processor (Skylake, IBRS)
  Binaries:
    Node: 14.16.1 - /usr/bin/node
    npm: 6.14.12 - /usr/bin/npm
  npmGlobalPackages:
    verdaccio: 4.12.0

EDIT: WORKAROUND
Seems one point not mentioned in the migration guide is that paths now need to be server-absolute, and can't be config-relative anymore. We previously had ./storage as storage path, now needs to be /absolute/path/storage. The same is true for plugins.

A minor issue related to this: logo access from a server-absolute or config-relative path is both broken now.

@juanpicado
Copy link
Member

Also, the Web UI is broken for me after updating from 4.12 to 5.0.

https://verdaccio.org/blog/2021/04/14/verdaccio-5-migration-guide#troubleshooting

@juanpicado
Copy link
Member

npm search hitting a Verdaccio v5 backend seems to return nothing.

npm search works for me, but the /-/all endpoint or old search support was removed from npm@7 here

npm/cli@504384b

So workaround use npm6 until v1 endpoint is ready, or use pnpm latest which still support all endpoint.

@tholiebig
Copy link

The "logo" issue (not shown anymore) is still there. Any workaround for this in the meantime? Our page looks ugly now.

@juanpicado
Copy link
Member

It is a open bug. No workaround yet. Hopefully next release will have a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants