服务器版本 ubuntu 18.04 tls
今天执行 yarn add的时候报错
ERROR: [Errno 2] No such file or directory: 'add' #3708
解决方法如下:
sudo apt remove cmdtest
sudo apt remove yarn
1. Configure the repository

$ 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
  1. Install Yarn
$ sudo apt-get update && sudo apt-get install --no-install-recommends yarn
  1. Verified Yarn Installtation.
    $ yarn -v
    1.20.1