1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

docs: show usage without setting registry globally (#1440)

This commit is contained in:
Alex Dixon 2019-08-20 11:19:13 -07:00 committed by Juan Picado @jotadeveloper
parent 7fa23577ae
commit 7d71b060c4

@ -86,6 +86,11 @@ You would need set some npm configuration, this is optional.
$ npm set registry http://localhost:4873/
```
For one-off commands or to avoid setting the registry globally:
```bash
NPM_CONFIG_REGISTRY=http://localhost:4873 npm i
```
Now you can navigate to [http://localhost:4873/](http://localhost:4873/) where your local packages will be listed and can be searched.
> Warning: Verdaccio [does not currently support PM2's cluster mode](https://github.com/verdaccio/verdaccio/issues/1301#issuecomment-489302298), running it with cluster mode may cause unknown behavior.