Skip to content

[DOC] Installing yarn on docker images #706

@Daniel15

Description

@Daniel15

From @andreawyss on October 20, 2017 17:43

Add language in the installation instruction to be aware to first remove existing versions of yarn installed. This is a common problem when installing the latest version of yarn with apt-get on a docker image such as the docket hub 'node:6.11.4'.

This 2 command are required before installing yarn with apt-get

Remove yarn: symbolic links and binary that where installed as part of the node image

RUN rm /usr/local/bin/yarn && rm /usr/local/bin/yarnpkg
RUN rm -rf /opt/yarn

app-get will install the latest version of yarn in /usr/bin but if the old version is present in /usr/local/bin then this will be used instead.

Copied from original issue: yarnpkg/yarn#4752

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions