Skip to content

A new problem with yarn has cropped up #651

@richtera

Description

@richtera

When using the plain node:8 or node:9 docker using npm install -g yarn no longer works. There is some kind of left over link in /usr/local/bin/yarn but no complete yarn install. So you get an error

npm ERR! path /usr/local/bin/yarnpkg
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/yarnpkg: /opt/yarn/bin/yarn symlink target is not controlled by npm /usr/local/bin
npm ERR! File exists: /usr/local/bin/yarnpkg
npm ERR! Move it away, and try again.

But executing

if which yarn; then
  echo "Yarn is installed!"
else
  echo "Yarn is not installed :-("
fi

shows yarn is not installed.
Thanks
Andy

Metadata

Metadata

Assignees

No one assigned

    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