Description
Which operating system are you using:
On Ubuntu 16.04 LTS
Please describe the steps you took when trying to install Yarn and what went wrong:
After removing cmdtest and installing node I've followed steps described here https://yarnpkg.com/lang/en/docs/install/#debian-stable
But when I run
yarn --version
I get
/usr/share/yarn/lib/cli.js:45726
let {
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/usr/share/yarn/bin/yarn.js:24:13)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
Activity
philoez98 commentedon Jan 14, 2019
Same for me here
mmxgn commentedon Jan 14, 2019
Same thing here
kaytotes commentedon Jan 14, 2019
Same issue here.
jeffpaulKinsta commentedon Jan 14, 2019
Same issue as well.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
jeffpaulKinsta commentedon Jan 14, 2019
Updating nodejs resolved this for me:
IE:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt-get install -y nodejs
jvanus commentedon Jan 14, 2019
Here's a Dockerfile you can use to duplicate the issue. Includes fix from @jeffpaulKinsta
Save the above to
Dockerfile
and run:docker build .
Kodedyukh commentedon Jan 15, 2019
Okay, thank you! Everything works with nodejs update
Update Dockerfile for yarn update
Sx3 commentedon Jan 16, 2019
yeah it resolved .Great.Thank you.
mat-staszczyk commentedon Jan 17, 2019
@jvanus
With this solution, you're installing nodejs twice. I think there is no need to do that 😃 .
40 remaining items