Yarn ERROR: There are no scenarios; must have at least one

前端 未结 7 801
死守一世寂寞
死守一世寂寞 2021-02-01 01:58

I tried to install Yarn and when I used the yarn command I got:

00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.
相关标签:
7条回答
  • 2021-02-01 02:10

    sudo npm install -g yarn

    then open a new terminal window and type "yarn --version"

    0 讨论(0)
  • 2021-02-01 02:18

    It looks like that I was trying to execute the wrong yarn, because simply running sudo apt install yarn on my Ubuntu 18.04 gave me yarn from cmdtest.

    So I solved by uninstalling it:

    sudo apt remove yarn
    

    And by installing it as the official website explains, which in my case (Ubuntu 18.04) it was the following:

    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
    
    0 讨论(0)
  • 2021-02-01 02:19

    You've got the wrong yarn. The yarn you're executing comes from the cmdtest package. Uninstalling cmdtest first should fix this:

    sudo apt remove cmdtest

    Once you've uninstalled it, run the commands below to install yarn properly:

    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
    
    0 讨论(0)
  • 2021-02-01 02:23

    I began to receive this error when i upgrade my nodejs to a new version. The steps i did to fix that bugs are :

    1. sudo apt remove cmdtest
    2. sudo apt autoremove
    3. sudo npm install -g yarn
    0 讨论(0)
  • 2021-02-01 02:26

    sudo apt install --no-install-recommends yarn

    0 讨论(0)
  • 2021-02-01 02:27

    The real name you should use when installing is yarnpkg

    sudo apt install yarnpkg

    That is the solution.

    0 讨论(0)
提交回复
热议问题