wiki:verdaccio_vanilla_install
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
- Debian 10.10
- Node.js v12
See also
References
wiki/verdaccio_vanilla_install.txt · Last modified: 2021/07/23 15:20 by antisa