Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/features/modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Shim mode offers a new, streamlined developer experience. When compared with Lin

Most users won't notice or feel the impact of shim latency, making shim mode recommended for most users.

Shim executables under `.shim` are hard links to `proxy.exe`. Hard links require the **same volume** for Node storage (`root` / InstallRoot) and the NVM data directory that holds `.shim`. If the hard link cannot be created (for example, Node on `D:` and NVM on `C:`), NVM tries a **file symlink** instead. That fallback needs [Developer Mode](https://learn.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development) or `SeCreateSymbolicLinkPrivilege` (same requirements as [link mode](#link-mode) UNC symlinks). If both fail, `nvm install` / `nvm reshim` fail and roll back rather than leaving a broken `npm`/`npx` PATH. Keep `root` on the same drive as NVM, switch to link mode, or enable Developer Mode.

Shim mode features:

- Auto-use pinned versions via `.nvmrc`, `.node-version`, `package.json`, or other custom runtime config files.
Expand Down Expand Up @@ -96,7 +98,7 @@ Windows has a "universal latency tax". It uses [`CreateProcessW`](https://learn.
|Node.js / V8 permission lockdown|:x:|:heavy_check_mark:<br/>_Governance_|
|Package manager cooldown|:x:|:heavy_check_mark:|
|Per-command execution logging|:x:|:heavy_check_mark:|
|Special Permissions<br/><br/>|[`SeCreateSymbolicLinkPrivilege`](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/create-symbolic-links)<br/>_for [UNC path](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths) symlinks_|None<br/><br/>|
|Special Permissions<br/><br/>|[`SeCreateSymbolicLinkPrivilege`](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/create-symbolic-links)<br/>_for [UNC path](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths) symlinks_|None for same-volume hardlinks; symlink privilege / Developer Mode only if `.shim` and `proxy.exe` are on different volumes<br/><br/>|


[^1]: Latency is predominantly from Windows `CreateProcessW` universal latency tax. The shim executable only adds ~1-3ms latency.
2 changes: 1 addition & 1 deletion docs/features/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ These use Notification Center when the NVM process is **not** in the foreground:
| `nvm alias add` | _(empty)_ | "&lt;name&gt;" now refers to vX.X.X |
| `nvm alias remove` | _(empty)_ | &lt;count&gt; alias(es) removed successfully. |
| `nvm pin` | _(empty)_ | Success text for `.nvmrc` / `package.json` engines updates |
| Symlink failure (Developer Mode off) | Help Enabling Symlinks | Button: **Open Developer Settings** |
| Symlink failure (Developer Mode off) — link mode UNC, or shim hardlink→symlink fallback | Help Enabling Symlinks | Button: **Open Developer Settings** |

## Sync and security notifications

Expand Down