ppm-htpasswd
is a default authentication plugin for the PPM.
This plugin is being used as dependency after
v1.0.2
.
As simple as running:
$ npm install -g ppm-htpasswd
auth:
htpasswd:
file: ./htpasswd
# Maximum amount of users allowed to register, defaults to "+infinity".
# You can set this to -1 to disable registration.
#max_users: 1000
To log in using NPM, run:
npm adduser --registry https://your.registry.local