X
X
Xenia2018-02-20 22:21:09
ubuntu
Xenia, 2018-02-20 22:21:09

Install yarn on ubuntu 16.04?

I just started to learn linux, a problem arose: I'm trying to install the yarn manager, I'm doing it according to the instructions for linux debian / ubuntu. But when checking yarn --version, the terminal writes

Программа 'yarn' на данный момент не установлена. Вы можете установить её, выполнив:
sudo apt install cmdtest

if you run it again sudo apt-get install yarn, it says The newest version of yarn package (1.3.2-1) is already installed,
what am I doing wrong? what does cmdtest have to do with it? plz help me figure it out
UPD sudo apt-get install --reinstall yarn fixed the issue

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
BB 8, 2018-02-22
@TGNC

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

something like this, but before installing it is recommended to update NODE to 16.04 or lower.

A
Alexander, 2018-02-20
@kentuck1213

https://yarnpkg.com/en/docs/install

Z
zooks, 2018-02-20
@zooks

It is installed via npm, and npm comes with node.js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question