-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied missing write access to /opt/app/node_modules #49
Comments
+1 I also have this same problem, any tips on a solution? |
I think setting the user as root in What do you think @BretFisher? |
+666 I have the save problem. Not sure how to solve it in a production-secure way. |
@aidengaripoli suggestion works great IMO. Just make sure you have CI tests that test any write permissions you might need in container at runtime so you don't get caught in prod with a container that's running under user permissions and have write problems (cache files, user uploads, etc.) that you didn't have in dev due to root user. |
A few options to solve this depending on what you'd like to do, in order of my preference (feedback welcome!):
|
Note option 2 above has a issue with using |
Dependencies can be installed again, but I still get the I'm on macOS 10.14.3 with Docker 18.09.2 and Docker Compose 1.23.2. |
I'm having the same issue as @nielsbril any update guys? |
Was getting the error with |
Following the instructions from the README, I cannot install additional Node packages with
docker-compose exec node npm install --save <package name>
due to write permissions of the 'node' user. If I update docker-compose.yml to set the user as 'root', I can again install pacakges. I'm not sure if this is the best way to solve the install permissions or not.The text was updated successfully, but these errors were encountered: