Developmant container runs on root user. Cargo was also set on root user inside the container.
For this reason sometimes need to use chown -R
or chmod
commands in case of permission issues.
Video Tutorial: https://youtu.be/aObI3LFRC7I or https://odysee.com/@NpmRunProgram:b/04-Development-environment:5?r=8kYS9APzLMWzAz1T3ejL4mrQbSkGgYLp
Environment setup requires that docker
and docker-compose
is installed on your system.
-
git clone [email protected]:dmitryr117/solana-local-env.git
orgit clone https://github.com/dmitryr117/solana-local-env.git
into directory of your choosing. -
Make sure that verdaccio docker process owns its directory bind mounts. Either unlock it to specific user and group:
sudo chown -R 10001:65533 ./verdaccio/*
Or open full access:sudo chmod 777 $(find ./verdaccio/* -type d) && sudo chmod 666 $(find ./verdaccio/* -type f)
This is important because otherwise verdaccio will not be able to save NPM packages locally due to permission issues.