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.

Document how to install plugins

See original GitHub issue

Is your feature request related to a problem?

I just started using Verdaccio on an AWS Amazon Linux 2 EC2 instance and I have no idea on how to install plugins.

I installed Verdaccio using npm install -g verdaccio and it runs fine, I can access the web interface.

Now I want to add the github oauth plugin but I have no idea on how to get this working. I tried

npm install -g verdaccio-github-oauth-ui

and modifying the config file for this plugin, but restarting Verdaccio only gives me:

Error: verdaccio-github-oauth-ui plugin not found. try "npm install verdaccio-github-oauth-ui"

I saw there is a plugins directory in the config file, but I have no idea how to install a plugin there, as running an npm install in that directory will just create a node_modules subdirectory containing the plugin and all its dependencies. (I tried this too btw and it also didn’t work)

Describe the solution you’d like I would like to see a few lines of documentation on how to install plugins, the same way the installation of Verdaccio itself is clearly explained. The only ones I find are about using Docker and extending the image to add plugins.

Thanks a lot!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
johanhelsing-attensicommented, Apr 28, 2021

Thanks @tommcc !

I managed to adapt your solution so I could use it in a Dockerfile instead

This is what I currently do

FROM verdaccio/verdaccio
USER root
ENV NODE_ENV=production
RUN npm install -g --no-bin-links --prefix /tmp/verdaccio-auth-memory-install verdaccio-auth-memory \
    && mv /tmp/verdaccio-auth-memory-install/lib/node_modules/verdaccio-auth-memory /verdaccio/plugins \
    && chown -R $VERDACCIO_USER_UID:root /verdaccio/plugins \
    && rm -rf /tmp/verdaccio-auth-memory-install
USER verdaccio

It’s pretty ugly, but I think I prefer it over having to deal with setting up a plugin volume

4reactions
stephen-dahlcommented, Jun 11, 2021

adapting your adaption into a multistage build 😉

FROM verdaccio/verdaccio:5 as builder
USER root
ENV NODE_ENV=production

RUN apk add alpine-sdk python
RUN npm i --global-style verdaccio-bitbucket

FROM verdaccio/verdaccio:5
COPY config.yaml /verdaccio/conf/config.yaml
COPY --from=builder --chown=$VERDACCIO_USER_UID:root /opt/verdaccio/node_modules/verdaccio-bitbucket /verdaccio/plugins/verdaccio-bitbucket
Read more comments on GitHub >

github_iconTop Results From Across the Web

Install plugins | IntelliJ IDEA Documentation - JetBrains
Download the plugin archive (ZIP or JAR). · Press Ctrl+Alt+S to open the IDE settings and select Plugins. · On the Plugins page,...
Read more >
Installing plugins - MoodleDocs
Login as an admin and go to Site administration > Plugins > Install plugins. · Go to the Moodle plugins directory, select your...
Read more >
How to install plugins in ONLYOFFICE Docs - YouTube
Plugin installation is super-easy in ONLYOFFICE editors These are just some plugins available in ONLYOFFICE:✓ YouTube✓ Telegram✓ DeepL✓ ...
Read more >
Extend functionality with plugins - Notepad++ User Manual
The Plugins Admin allows you to easily install plugins that are in the Plugins List. To do so, place a check mark next...
Read more >
Install plugins - Bitnami Documentation
Browse to the “Plugins” menu page and then click the “Add New” button to search for plugins. · Once you find a plugin,...
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