-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(docs): use pnpm add <pkg>
instead of pnpm install <pkg>
#10529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@jferrettiboke is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is definitely more correct. Would you be able to update other places that we make the docs make this mistake, so we can be consistent?
@anthonyshew Done. ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
It should be
pnpm add <pkg>
instead ofpnpm install <pkg>
.pnpm install
is used to install all dependencies for a project whilepnpm add <pkg>
is used to install a package and any packages that it depends on.More info (official source):
pnpm install <pkg>
does the same aspnpm add <pkg>
today, but it might stop functioning that way in future versions since the official docs clarify the difference between the two. It might be thatpnpm install <pkg>
was used in past versions, and the PNPM team didn't want to remove support for it right away after introducingpnpm add <pkg>
.