Skip to content
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

Yarn global installed packages without being root are not accessible in PATH #5

Open
moufmouf opened this issue Mar 18, 2020 · 0 comments
Assignees

Comments

@moufmouf
Copy link
Member

FROM thecodingmachine/nodejs:12

RUN yarn global add pm2

CMD [ "pm2-runtime", "index.js"]

This fails because yarn global when not run as root will put bin files in /home/docker/.yarn/bin.
This directory should be part of PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants