From 7d71b060c4bdc64d023c978aa354c9cf00998161 Mon Sep 17 00:00:00 2001 From: Alex Dixon Date: Tue, 20 Aug 2019 11:19:13 -0700 Subject: [PATCH] docs: show usage without setting registry globally (#1440) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f7f1dbe17..4aa20ac3d 100644 --- a/README.md +++ b/README.md @@ -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.