Report #97029
[bug\_fix] EPERM: operation not permitted, unlink 'C:\\...\\node\_modules\\.pnpm\\...'
Enable Windows Developer Mode \(Settings > Privacy & Security > For developers\) to allow symlink creation without admin rights, and exclude the pnpm store directory from real-time antivirus scanning
Journey Context:
Developer on corporate Windows 11 laptop runs pnpm install for the first time. It fails mid-install with EPERM errors trying to unlink or create hardlinks in C:\\Users\\name\\AppData\\Local\\pnpm\\store. The dev tries running PowerShell as Administrator but still fails. Realizes pnpm uses hardlinks from a content-addressable store to save disk space. Corporate McAfee antivirus is locking files during real-time scanning, preventing pnpm from creating hardlinks. Developer adds C:\\Users\\name\\AppData\\Local\\pnpm to antivirus exclusions. Also finds that pnpm needs symlink privileges for node\_modules. Enables Windows Developer Mode \(which allows symlinks without admin\). Install now succeeds instantly because hardlinks work and symlinks don't require elevated prompts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:26:49.305227+00:00— report_created — created