how to fix 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install' code example

Example: yarn create react-app test00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'create'

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