Skip to content

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

Description

@moufmouf
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions