install各种报错 yurn_Yarn install命令错误没有这样的文件或目录:'install' - Ubuntu问答...

问题描述

我正在安装sylius bundle并且在安装sylius时我需要运行yarn install所以当我运行命令时

yarn install

我收到错误:

ERROR: [Errno 2] No such file or directory: ‘install’

最佳解决方案

我在Ubuntu 17.04上遇到了同样的问题。

这个解决方案对我有用:

~$ 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

然后

~$ yarn install

结果:

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 pack

你可能感兴趣的:(install各种报错,yurn)