这是indexloc提供的服务,不要输入任何密码
Skip to content

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

Merged
merged 3 commits into from
Jun 9, 2025

Conversation

jferrettiboke
Copy link
Contributor

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 review from anthonyshew and a team as code owners June 2, 2025 10:00
@turbo-orchestrator turbo-orchestrator bot added area: docs Improvements or additions to documentation needs: triage New issues get this label. Remove it after triage labels Jun 2, 2025
Copy link

vercel bot commented Jun 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 5:56pm

Copy link

vercel bot commented Jun 2, 2025

@jferrettiboke is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@anthonyshew anthonyshew left a 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?

@jferrettiboke
Copy link
Contributor Author

@anthonyshew Done. ✅

Copy link
Contributor

@anthonyshew anthonyshew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@anthonyshew anthonyshew enabled auto-merge (squash) June 9, 2025 17:55
@anthonyshew anthonyshew merged commit c4fcd81 into vercel:main Jun 9, 2025
34 checks passed
@jferrettiboke jferrettiboke deleted the patch-31 branch June 10, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Improvements or additions to documentation needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants