-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding default "local-storage" as a tarball_backend #30
Comments
To be honest I only tested the plugin with aws-s3-storage and redis-storage. Could you share more information to help me reproduce it?
|
However, from the partial error message, it is a plugin loader issue. I think to load an internal verdaccio plugin, you have to use the full name: Example 1: use the storage-proxy as a wrap for the local-storage plugin:
Example 2: use the storage-proxy to work with the local-storage plugin and redis-storage plugin
I didn't test the code, but it seems the way to go. |
Thanks for the quick response :) I did try this before and i get this error whenever we try to update (or upload a new package).
Now this issue is more on the local-storage plugin side of things but not sure specifically where is the issue :(. For versions: Verdaccio: 5.2.2 Increasing the version of any of these causes issue with our infrastructure as other dependencies are attached. |
The verdaccio local-storage store directory structure:
The package publishing follows below steps,
When mixing the Redis and local-storage like this, the writeTarball call (step 2) will fail because the folder doesn't exist yet.
Potential solutions:
|
fyi, verdaccio/verdaccio#4594 should fix this problem with local storage. |
Trying to make out tarball files to use Local-Storage (default plugin) and it seems it doesn't work.
at /usr/local/lib/node_modules/verdaccio/node_modules/verdaccio-storage-proxy/lib/plugin.js:39:48 at Array.forEach (<anonymous>) at new VerdaccioStoragePlugin (/usr/local/lib/node_modules/verdaccio/node_modules/verdaccio-storage-proxy/lib/plugin.js:33:39) at /usr/local/lib/node_modules/verdaccio/build/lib/plugin-loader.js:125:32 at Array.map (<anonymous>) at loadPlugin (/usr/local/lib/node_modules/verdaccio/build/lib/plugin-loader.js:62:37) at LocalStorage._loadStorePlugin (/usr/local/lib/node_modules/verdaccio/build/lib/local-storage.js:873:47) at LocalStorage._loadStorage (/usr/local/lib/node_modules/verdaccio/build/lib/local-storage.js:857:26) at new LocalStorage (/usr/local/lib/node_modules/verdaccio/build/lib/local-storage.js:49:31)
The text was updated successfully, but these errors were encountered: