gpt4 book ai didi

ubuntu - yarn安装命令报错No such file or directory : 'install'

转载 作者:太空宇宙 更新时间:2023-11-03 16:40:01 24 4
gpt4 key购买 nike

我正在安装 sylius 包,在安装 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 -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.

关于ubuntu - yarn安装命令报错No such file or directory : 'install' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46013544/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com