纱线安装命令错误没有那个文件或目录:'安装' [英] Yarn install command error No such file or directory: 'install'

查看:34
本文介绍了纱线安装命令错误没有那个文件或目录:'安装'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装 sylius 包,在安装 sylius 时我需要运行 yarn install 所以当我运行命令

I am installing sylius bundle and while install sylius I need to run yarn install So While i run command

yarn install

出现错误:

错误:[Errno 2] 没有那个文件或目录:'install'

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

推荐答案

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

I had the same issue on 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 -y

然后

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 behaviour. Yarn supports the following server 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.

希望能帮到你.

这篇关于纱线安装命令错误没有那个文件或目录:'安装'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆