What does yarn install do?
The yarn install command is used to install all dependencies required for a project. It searches for the project’s package.json file and based on the dependencies list in that file, downloads and installs all necessary packages. Yarn install will download all dependencies into the project’s node_modules directory so that the project can utilize these dependencies.