yarnpkg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
yarnpkg: command not found
or when using sudo you get the following error message
sudo: yarnpkg: command not found
Solutions to yarnpkg: command not found
How To Fix yarnpkg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu yarnpkg is provided by yarnpkg package.
yarnpkg is:
Fast: Yarnpkg caches every package it has downloaded, so it never needs to download the same package again. It also does almost everything concurrently to maximize resource utilization. This means even faster installs.
Reliable: Using a detailed but concise lockfile format and a deterministic algorithm for install operations, Yarnpkg is able to guarantee that any installation that works on one system will work exactly the same on another system.
Secure: Yarnpkg uses checksums to verify the integrity of every installed package before its code is executed.
Node.js is an event-based server-side JavaScript engine.
To fix this problem, we can install more using the command below.
sudo apt-get -y install yarnpkg
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install yarnpkg.
sudo apt -y install yarnpkg
Or if you have aptitude installed you can use the following command.
sudo aptitude install yarnpkg
Summary
In this tutorial we learn how to fix yarnpkg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.