Very basic and simple setup to run verdaccio using docker-compose
.
git clone https://github.com/ReactiioN1337/docker-verdaccio verdaccio \
cd verdaccio \
&& sudo chown -Rh 10001:65533 config \
&& docker-compose up -d
I recommend to do this directly as soon as the container has been started up for the first time.
npm ERR! code E404
npm ERR! 404 Not Found - PUT http://your.domain/package-name - no such package available
npm ERR! 404
npm ERR! 404 '[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
Connect to your sever and enter docker-compose exec --user root verdaccio /bin/sh
. You'll land in
an attached shell, just type chown verdaccio: /verdaccio/ -R && exit
to fix this issue (thanks to @martijnhimestra).