Skip to content

docs: add tip about excluding pnpm in Microsoft Defender #684

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 2 commits into
base: main
Choose a base branch
from

Conversation

cyyynthia
Copy link

This adds a little tip on the installation page with a quick way to add pnpm store to the list of excluded folders in Microsoft Defender, which can significantly speedup installation speeds, from 5+ minutes to just a few seconds.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Jun 30, 2025

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

A member of the Team first needs to authorize it.

Comment on lines 219 to 224
On Windows, Microsoft Defender can significantly slow down installation of packages. You can add pnpm to Microsoft Defender's list
of excluded folders in a PowerShell window with administrator rights by executing:

```powershell
Add-MpPreference -ExclusionPath $(pnpm store path)
```
Copy link
Member

Choose a reason for hiding this comment

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

Just put this to the windows section as regular paragraph.

Copy link
Author

Choose a reason for hiding this comment

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

Fair enough. I was unsure, since excluding pnpm from Microsoft Defender concerns all install methods and the Windows section is specific to installation via a pwsh command but I guess it's also quite visible as it's the first thing people see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants