Skip to content

Exotelis/npm-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-registry

Setup

Run Verdaccio in a docker container:

docker run -it --rm --detach --name local-npm-registry \
    -p 4873:4873 \
    -v $(pwd)/conf:/verdaccio/conf \
    -v $(pwd)/plugins:/verdaccio/plugins \
    -v $(pwd)/storage:/verdaccio/storage \
    verdaccio/verdaccio

Note: You can also run the run.sh script.

Usage

Login (Adds the user if it does not exist):

npm login --registry http://localhost:4873

Publish packages:

npm publish --registry http://localhost:4873

(Optional) Create token (login required):

npm token create

(Optional) Setup up an .npmrc in your projects:

registry=http://localhost:4873

alternatively with token:

registry=http://localhost:4873
//localhost:4873/:_authToken=<MYTOKEN>

About

This npm registry is for local development only.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages