npm i -g yarn #if you are on linux use sudo before command like this sudo npm i -g yarn // here i nean install -g mean global insall if you want to install local remove -g