As per the yarn installation for yarn v2, they want you to install using npm install -g yarn. So I ran sudo npm install -g yarn on Ubuntu 20.04. But after I do that, it says command not found.
npm install -g yarn
sudo npm install -g yarn
? sudo npm install -g yarn > [email protected] preinstall /usr/local/lib/node_modules/yarn > :; (node ./preinstall.js > /dev/null 2>&1 || true) ? yarn --version zsh: command not found: yarn
1.4m articles
1.4m replys
5 comments
56.9k users