The yarn actually defeats NPM in terms of speed and performance. Yarn is secure and can install multiple packages at once compared to NPM, which installs packages one at a time.