yarn install fails ubuntu 14.04

Created on 20 Oct 2016  路  10Comments  路  Source: yarnpkg/yarn

my system version: ubuntu 14.04
nodejs version: v0.10.37

if i run: apt-get install yarn:
The following packages will be REMOVED:
nodejs
The following NEW packages will be installed:
yarn
0 upgraded, 1 newly installed, 1 to remove and 21 not upgraded

so how to solve it

Most helpful comment

Same here:
apt-get update
apt-get install npm
apt-get install nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
apt-key adv --keyserver keys.gnupg.net --recv-keys A4EBAC6667697DD2 \
apt-get update
apt-get install yarn
...
The following packages will be REMOVED:
nodejs
The following NEW packages will be installed:
yarn

All 10 comments

why did you close this ? I'm getting the same problem !

Same problem here. Our build machines still run trusty - currently we install via npm install -g yarn but that is now deprecated. Upgrading the build machines for this is not an option - @vTNT did you solve this or just upgraded your ubuntu?

I cannot install yarn on my 14.04 x86_64 system either. Fails for

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package yarn

After following the install instructions.

+1

I'm getting the same problem !

Please reopen this. Happening for me too.

me too

Same here:
apt-get update
apt-get install npm
apt-get install nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
apt-key adv --keyserver keys.gnupg.net --recv-keys A4EBAC6667697DD2 \
apt-get update
apt-get install yarn
...
The following packages will be REMOVED:
nodejs
The following NEW packages will be installed:
yarn

I have figured this out for anyone else having the issue ..
it's compatibility issue .. install a newer version of nodejs and then try again .. should work.
I installed my nodejs from nodesource instead of the apt repo

I'm getting the same problem !

Was this page helpful?
0 / 5 - 0 ratings