DEV Community

Discussion on: Web Development with Windows Subsystem for Linux

Collapse
 
rubiin profile image
Rubin • Edited

About yarn. Why don't u install it via npm instead of the Ubuntu package

Collapse
 
ryanlanciaux profile image
Ryan Lanciaux

I have installed yarn via npm a couple machines back BUT it sounds like they recommend against that:

From the yarn docs:

Note: Installation of Yarn via npm is generally not recommended. When installing Yarn with Node-based package managers, the package is not signed, and the only integrity check performed is a basic SHA1 hash, which is a security risk when installing system-wide apps.

For these reasons, it is highly recommended that you install Yarn through the installation method best suited to your operating system.

Generally on my Mac, I install via Homebrew now and Linux as described here 🚀