


In this post, you learned how to install it on Debian 11. Yarn is a fast tool that allows us to manage the packages of our web project that is more and more used worldwide. Or by specifying a version yarn up you can access all the Yarn commands by consulting the help yarn help 1.- Yarn on Debian 11 Step 1: Update APT index To update the contents database of your Debian Linux package repository, use the apt update command: sudo apt update Step 2: Install Node. Or specify a specific version yarn add you want to remove any dependencies, just run yarn remove īut you can also update the dependencies yarn up Method 1: Install Node.js 1614 and npm on Debian 11 from Nodesource Repository Install Node.js 16 on Debian 11 Follow the steps below to install Noje.js 16. mkdir projectĪccess the folder and start the yarn project as follows cd projectĪnd to add dependencies to the newly created project you can run yarn add Once we have Yarn installed on our computer the next thing to do is to use it a little bit.Ĭreate a new folder for the new project. To always update Yarn to the latest version, you have to run the following command yarn set version latest Using Yarn Then you can check the installed version with the following command yarn -version usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js So, this has to be our first step.Īfter the installation is finished, you can install Yarn on Debian 11 by executing the following command sudo npm install -g yarn The method recommended by the official Yarn documentation is using npm and therefore NodeJS.
