Yarn installation command error There is no such file or directory: 'install'

I install the sylius package and when installing sylius I need to run install So yarn while I run the command

yarn install

I get an error:

ERROR: [Errno 2] There is no such file or directory: 'install'

+91
source share
8 answers

I had the same issue on Ubuntu 17.04.

This solution worked for me:

~$ sudo apt remove cmdtest
~$ sudo apt remove yarn
~$ 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

then

~$ yarn install

result:

yarn install v1.3.2
warning You are using Node "6.0.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

info Lockfile not saved, no dependencies.
Done in 0.20s.

Hope this helps you.

+228
source

I had the same issue on Ubuntu 18.04. Here is what worked for me:

I deleted cmdtestandyarn

sudo apt remove cmdtest

sudo apt remove yarn

Set yarn globally using npm

sudo npm install -g yarn
+49

. Ubuntu 16.04, Ubuntu 17.04 Ubuntu 18.04.

cmdtest ( * NIX ):

sudo apt remove cmdtest
sudo apt remove yarn

npm

npm install -g yarn

sudo npm install -g yarn

. .

yarn install sylius

, . !

:

re-open the terminal .

+36

sudo yarn install
+13

Ubuntu 16.04 ( , , 14.04, zappee 17.04)

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
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
apt-get update
apt-get install nodejs
apt-get install yarn

, sylius (/var/www/mysite)

yarn install
yarn run gulp
+9

sudo npm install -g yarnpkg
npm WARN deprecated yarnpkg@0.15.1: Please use the 'yarn' package instead of 'yarnpkg'

sudo npm install -g yarn
+1

(Windows), , .

0

TLDR; Ubuntu 17.04 & .

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

/ Ubuntu ( Ubuntu OS) & cmdtest. https://yarnpkg.com/lang/en/docs/install/#debian-stable

0

All Articles