There are no scenarios ; must have at least one

安装yarn成功后,输入yarn显示“There are no scenarios ; must have at least one……

首页运行yarn后,提示安装

apt install cmdtest

安装好后,运行yarn报错,然后卸载cmdtest,直接install yarn也同样报错,我的Ubuntu是22.10的版本,也update了,开始没怀疑是yarn版本低的问题,后面查了一下yarn版本,发现才0.33的!

#移除cmdtest
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 update
sudo apt install yarn

再次查看yarn版本

yarn --version

发现版本是1.22.19,这样就正常了!

玄机博客
© 版权声明
THE END
喜欢就支持一下吧
点赞10 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容