Verdaccio is very useful server that provides "A lightweight private npm proxy registry".
This package allows the installation and running of Verdaccio as a Windows Service.
-
Install nodejs for windows.
-
Extract release file for verdaccio windows.
-
run
npm install --save verdaccio
-
Download the latest Windows Service Wrapper (winsw) release as appropriate. Normally (winsw-x64.exe).
-
Rename the winsw executable verdaccio-service.exe
-
Edit the winsw config verdaccio-service.yml as appropriate.
-
Edit the verdaccio config verdaccio-config.yaml as detailed at in the verdaccio documentation.
-
Install the service - run:
.\verdaccio-service.exe install
-
Start the service - run:
.\verdaccio-service.exe start
Windows firewall may need to be configured to allow the node process act as a server.
Edit the verdaccio-service.yml
Use the verdaccio.cmd or verdaccio.ps1 script with the --config
option:
.\verdaccio.cmd --config verdaccio-config.yaml
Logging is configured in the winsw configuration verdaccio-service.yml
Verdaccio uses apache htpasswd files for its authentication by default. The htpasswd can be used to create a file valid for verdaccio - you can use npx
to run it
npx htpasswd
Use this to create a htpasswd file and manage the accounts in it. NOTE Ensure Verdaccio is configured to point to the htpasswd file you created (default is .\htpasswd
).