I just knew that yarn doesn’t recommend devs to use npm for install.
I have seen npm install -g yarn so many time lol.
But, actually the official site doesn’t recommend that.
From official site.
Install via npm
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.