Package registry
nodejs
verdaccio
setup
export ENTITY='alice'
export REALM_LOCATION='10.10.10.10'
export INSTALLATION_PATH=$HOME/.$ENTITY/registries/npm;
export OPERATING_PATH=$INSTALLATION_PATH/local;
prepare
mkdir -p $OPERATING_PATH/storage && cd $OPERATING_PATH
wget https://raw.githubusercontent.com/verdaccio/verdaccio/5.x/conf/docker.yaml
sudo chown -R 10001:65533 $OPERATING_PATH
cd $INSTALLATION_PATH
install / run
docker run -it --rm --name npm-registry \
-p $REALM_LOCATION:4873:4873 \
-v $OPERATING_PATH/docker.yaml:/verdaccio/conf/docker.yaml \
-v $OPERATING_PATH/storage:/verdaccio/storage:rw \
-v $OPERATING_PATH/plugins:/verdaccio/plugins:rw \
verdaccio/verdaccio
use
use any one of the following to make use.
set manually
use manually
add to local env
set in .npmrc
publishConfig
in your package.json
precache
nvm use 14 && yarn add ws express fastify socket.io async rxjs lodash jsonwebtoken bcrypt uuid jest winston debug minimist chalk colors ora axios fetch nodemailer passport mongoose mini-mongo nodemon dotenv cross-env commander yargs eslint js-yaml typescript fs-extra rimraf mkdirp glob shelljs ramda yup underscore validator date-fns cheerio hapi karma pug less morgan jsdom