User Tools

Site Tools


wiki:verdaccio_vanilla_install

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

  • Debian 10.10
  • Node.js v12

See also

References

wiki/verdaccio_vanilla_install.txt · Last modified: 2021/07/23 15:20 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki