Yarn continua a ser o gerenciador de pacotes de escolha para muitos times. Recebemos com entusiasmo o lançamento do Yarn 2, um novo release importante, com uma longa lista de mudanças e melhorias. Além de ajustes de usabilidade e melhorias na área de espaços de trabalho, o Yarn 2 introduz o conceito de zero-installs, que permite às pessoas desenvolvedoras executar um projeto diretamente após cloná-lo. No entanto, o Yarn 2 inclui algumas mudanças importantes que tornam a atualização não-trivial. Ele também traz ambientes plug'n'play (PnP) como padrão, mas não oferece suporte ao React Native em ambientes PnP. Os times podem, é claro, desabilitar o PnP ou permanecer no Yarn 1. No entanto, eles devem estar cientes de que o Yarn 1 está agora em modo de manutenção.
Yarn is a fast, reliable and secured package manager for JavaScript. Using a lock file and a deterministic algorithm, Yarn is able to guarantee that an installation that worked on one system will work exactly the same way on any other system. By efficiently queuing up requests, Yarn maximizes network utilization and as a result we’ve seen faster package downloads. Yarn continues to be our tool of choice for JavaScript package management in spite of the latest improvements in npm (version 5).
Yarn is a new package manager that replaces the existing workflow for the npm client while remaining compatible with the npm registry. With the npm client, we may end up with a different tree structure under node_modules based on the order that dependencies are installed. This nondeterministic nature can cause "works on my machine" problems. By breaking the installation steps into resolution, fetching and linking, Yarn avoids these issues using deterministic algorithms and lockfiles and thus guarantees repeatable installations. We've also seen significantly faster builds in our continuous integration (CI) environment because of Yarn caching all the packages it downloads.
Yarn is a new package manager that replaces the existing workflow for the npm client while remaining compatible with the npm registry. With the npm client, we may end up with a different tree structure under node_modules based on the order that dependencies are installed. This nondeterministic nature can cause "works on my machine" problems. By breaking the installation steps into resolution, fetching and linking, Yarn avoids these issues using deterministic algorithms and lockfiles and thus guarantees repeatable installations. We've also seen significantly faster builds in our continuous integration (CI) environment because of Yarn caching all the packages it downloads.