Skip to content

fix(docs): use pnpm add <pkg> instead of pnpm install <pkg> #7563

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jferrettiboke
Copy link

It should be pnpm add <pkg> instead of pnpm install <pkg>.

pnpm install is used to install all dependencies for a project while pnpm 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 as pnpm 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 that pnpm install <pkg> was used in past versions, and the PNPM team didn't want to remove support for it right away after introducing pnpm add <pkg>.

@jferrettiboke jferrettiboke requested a review from a team as a code owner April 11, 2025 13:01
@jferrettiboke jferrettiboke requested a review from sade-wusi April 11, 2025 13:01
@sade-wusi sade-wusi added fixed-content fix to content that has outdated or wrong information content-update updates to content that are not new features, includes grammar fixes, added notes labels Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content-update updates to content that are not new features, includes grammar fixes, added notes fixed-content fix to content that has outdated or wrong information
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants