Table of Contents

, ,

Verdaccio vanilla install

Install node.js v12

curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
apt install nodejs npm

Install verdaccio

npm install -g verdaccio

Create systemd service

cp /usr/lib/node_modules/verdaccio/systemd/verdaccio.service /lib/systemd/system/ && systemctl daemon-reload

Edit the service to point to correct config.yaml.

systemctl edit verdaccio.service

It should look like this:

systemctl cat verdaccio.service

# /lib/systemd/system/verdaccio.service
[Unit]
Description=Verdaccio lightweight npm proxy registry
 
[Service]
Type=simple
Restart=on-failure
User=verdaccio
ExecStart=/usr/bin/verdaccio --config /etc/verdaccio/config.yaml
 
[Install]
WantedBy=multi-user.target
 
# /etc/systemd/system/verdaccio.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/verdaccio --config /home/verdaccio/verdaccio/config.yaml

Tested on

See also

References