Replies: 19 comments 5 replies
-
I needed to quote this 👍
This is not possible right now, but, why not? I'd love it as well. I think would be a nice and loved PR.
🙃😊 |
Beta Was this translation helpful? Give feedback.
-
Aww, I would love to make a PR, but I can't now. I'll keep an eye on it if I ever get time 😄 If someone else can, it'd be a welcome addition! 😄 |
Beta Was this translation helpful? Give feedback.
-
Hi, as far as using verdaccio to install the npm packages in the disconnected env. - perfect. this looks like a trivial query - check what is in the cache. |
Beta Was this translation helpful? Give feedback.
-
@TheILPlace two issues here:
Refers to: #1005
|
Beta Was this translation helpful? Give feedback.
-
Starting verdaccio will generate a file called ".sinopia-db.json" under storage folder, adding package names to "list" array will do the trick to show the cached packages. Though I don't know if it's recommended. my file content: |
Beta Was this translation helpful? Give feedback.
-
@nanchen :) that's hacky, you can do it and works, but, it's not a good practice. |
Beta Was this translation helpful? Give feedback.
-
Once #1126 is merged, we can experiment easily to solve this. |
Beta Was this translation helpful? Give feedback.
-
Currently, as a first step, I'm adding required logic to the |
Beta Was this translation helpful? Give feedback.
-
When does the retrieving happen? On starting the server? Once the server has started it can persist when fetching new packages and if a package was deleted from fs, and the page was navigated to, you can say package was deleted and go to previous page and remove from storage. How is it handled with private packages though? 🤔 |
Beta Was this translation helpful? Give feedback.
-
No, this will hit performance on booting and the API does not care about this feature, it is just for UI and those has enable the UI.
The original design fetch packages under demand. Thus, each time user visits the page the list of private packages and his metadata is retrieved and a web api endpoint provide list to UI after the check permissions take place. Having enabled this for the whole storage will increase the fetching time since the default plugin is based on file sytem. In any case, this has to be done for each plugin since verdaccio delegate this job through the Storage API. The unique cache that exist is for the search endpoint using the |
Beta Was this translation helpful? Give feedback.
-
Do you still need help for this issue? I've just found your project and I want to help out. |
Beta Was this translation helpful? Give feedback.
-
@chauthai yes, I was working on this, the current status is the following
If you want more insights about this. Feel free join our chat (discord). |
Beta Was this translation helpful? Give feedback.
-
pls look at |
Beta Was this translation helpful? Give feedback.
-
Perhaps you might like verdaccio-offline-storage: it lists all the locally available packages in the web ui AND rewrites on-the-fly the packages definitions so only locally available versions are recognized. Also, it's compatible with the default local-storage plugin, so the registry won't get broken. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
Excellent move 👏 |
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
-
Update about this, on the current master branch (not 5.x)
PR are welcome for the point 2. |
Beta Was this translation helpful? Give feedback.
-
Hello, anything update here? I met the same problem in a closing network environment, since I'm using 5.x version via docker, I see both two plugins local-storage and verdaccio-offline-storage you mentioned before are not maintained for a long time... |
Beta Was this translation helpful? Give feedback.
-
You can try |
Beta Was this translation helpful? Give feedback.
-
I'm currently using verdaccio because I have to be somewhere without internet for a few days. I've cached a lot of npm modules via verdaccio, and everything seems good, but I'd love to see pages generated for them on the localhost frontend like it appears on npmjs.com. This already happens when you publish from verdaccio, but I'd like to (optionally?) enable these pages for packages pulled from npm as well.
Oh, and well done! I love what you've been doing so far.
Thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions