Comparative analysis of JavaScript package managers - yarn and npm


In this article, two leading solutions for managing packages in projects which are using JavaScript technology (yarn and npm) were subjected to a comparative analysis. As part of the implementation, two configuration files were created, one of which represents an empty application created on the basis of an application template based on the Angular framework in version 8. The second file reflects an extensive web application based on the same framework, but with the addiction of over 100 dependencies. The research was focused on the time efficiency of both solutions.


NPM; yarn; package manager; performance testing

MSR '16: Proceedings of the 13th International Conference on Mining Software Repositories, [24.01.2021].

Charakterystyka NPM, [03.01.2021].

Działanie menadżerów pakietów JavaScript, [03.01.2021].

Charakterystyka yarn, [11.02.2021].

E. Wittern, P. Suter, S, Rajagopalan, A look at the dynamics of the JavaScript package ecosystem, MSR’16: Proceedings of the 13 Conference of Mining Software Repositories, (2016) 351-361,

A. Jacobs, Comparsion of Javascript Package Managersm 2019,, [24.01.2021].

Wykres popularności obu rozwiązań, [24.01.2021].


Published : 2021-06-30

Chodorowski, M. (2021). Comparative analysis of JavaScript package managers - yarn and npm. Journal of Computer Sciences Institute, 19, 75-80.

Michał Chodorowski
Lublin University of Technology  Poland