10000 Yarn global installed packages without being root are not accessible in PATH · Issue #5 · thecodingmachine/docker-images-nodejs · GitHub
[go: up one dir, main page]

Skip to content
Yarn global installed packages without being root are not accessible in PATH #5
Open
@moufmouf

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.

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

    0