运行:which npm 找到npm安装路径
[xiaoxin@iZ2zed99h19kmb7fgbjcghZ ~]$ which npm
/usr/local/node/node-v10.14....

yarn安装
Install via npm
It is recommended to install Yarn through the npm package manager, which comes bund...

nodejs16.17.0
Downloads
Latest LTS Version: 16.17.0 (includes npm 8.15.0)
Download the Node.js source code...