Yarn install error: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘install‘

Execute the following command:
sudo apt remove cmdtest

sudo apt remove yarn

sudo npm install -g yarn

Note: after the command, you need to restart the terminal and then enter yarn install


Read More: