Introduction to the
You may not have heard of PNPM, but you must know of NPM, YARN. In short, PNPM is as much a package manager as the previous two, but the advantage of PNPM is that it is more efficient to install packages in most scenarios. Picture below (official)
Installation Guide Mac OS
curl -f https://get.pnpm.io/v6.js | node - add --global pnpm
Copy the code
A small pit
File permissions
Check the permission of /usr/local/bin as prompted
If you find that the permission of the directory belongs to root, you can change the owner of the directory and all files in the directory to the current user
Execute the installation command again
yep! Successful installation