I have tried to install yarn on Kali Linux but it has failed our,when i run yarn command
in the terminal Kali-Linux asks me to install it and when i say yes it install but it is not working. when i try to create a vue application by running vue create
command yarn, it's like yarn is not present.I have tried visiting Yarn webt site
But i can't find a solution
How can i register it so that is available to create a vue application.any one to help.
CodePudding user response:
I have also ever got that challenge when I joined Linux think I was installing a different yarn. but u can install it via curl, Use the following command.
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
After running that command can run sudo apt update && sudo apt install yarn
then after that, you can run yarn
in your terminal to confirm whether yarn is successfully installed
CodePudding user response:
Kali remains a linux debian distribution, to install yarn on debian you can use nmp or Debian package repository
Using NPM
npm install --global yarn
Using Debian package 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
Then you can simply:
sudo apt update && sudo apt install yarn
For more details read the : official docs