verdaccio: Unable to specify path for config files.

I have used following config file (YML)

storage:  ~/verdaccio/storage
auth:
    htpasswd:
         file: ~/verdaccio/htpasswd

But , it is creating verdaccio folder in current directory of config file but not the actual home directory.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

All is possible, I’m just describing how it works now. The key is here https://github.com/verdaccio/local-storage/blob/master/src/local-database.ts#L276 where it joins the storage with self_path https://github.com/verdaccio/verdaccio/blob/master/src/lib/cli.js#L55 .

If someone manage to make it work with an absolute path while does not break current installations, I think I can push it to master. It seems trivial, but, be aware functional/unit testing might be affected.

Side note: any development should be done on top of 4.x branch and master on local-storage.

Some info relevant how we treat those paths (https://verdaccio.org/docs/en/cli#default-config-file-location)