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
3 changes: 2 additions & 1 deletion docs/command/package-manager-shims.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,13 @@ Cache state changes can surface as **NVM4303**; untrusted Node → **NVM4301**;
| Target type | Verification |
|:-|:-|
| npm / npx / corepack JS entry (`npm-cli.js`, `npx-cli.js`, `corepack.js`) | SHA-256 + TPM-signed **script trust** cache entry |
| pnpm / yarn JS entry (`pnpm.mjs` / `pnpm.cjs` / `pnpm.js`, `yarn.js` / `yarn.cjs` / `yarn.mjs`) | SHA-256 + TPM-signed **script trust** cache entry (proxy prefers these over the `.cmd` wrapper) |
| Delegated `.exe` | Same verify-cache path used for `node.exe` |
| Delegated `.cmd` / `.bat` | SHA-256 + TPM-signed script trust cache entry |

Trust entries are written when versions are installed, activated, or reshimed.
If a script changed since it was trusted, or no trust entry exists, launch is blocked (**NVM4306**).
If you trust the change, run `nvm firewall trust module <name>`.
If you trust the change, run `nvm firewall trust module <name>` — that resigns both the top-level `.cmd`/`.bat` and the nested JS/CJS/MJS entrypoint the proxy actually launches.
`nvm reshim` alone does not keep the module trusted after the next self-update.
You can also reinstall the version or run `nvm doctor --autofix` as appropriate.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ nvm reshim
| Тип цели | Проверка |
|----------|----------|
| JS entry npm / npx / corepack (`npm-cli.js`, `npx-cli.js`, `corepack.js`) | SHA-256 + TPM-подписанная запись **script trust** cache |
| JS entry pnpm / yarn (`pnpm.mjs` / `pnpm.cjs` / `pnpm.js`, `yarn.js` / `yarn.cjs` / `yarn.mjs`) | SHA-256 + TPM-подписанная запись **script trust** cache (proxy предпочитает их `.cmd`-обёртке) |
| Делегированный `.exe` | Тот же verify-cache путь, что для `node.exe` |
| Делегированный `.cmd` / `.bat` | SHA-256 + TPM-подписанная запись script trust cache |

Записи доверия пишутся при установке/активации версий или reshim.
Если скрипт изменился с момента доверия или записи нет — запуск блокируется (**NVM4306**).
Если вы доверяете изменению, выполните `nvm firewall trust module <name>`.
Если вы доверяете изменению, выполните `nvm firewall trust module <name>` — это переподписывает и top-level `.cmd`/`.bat`, и вложенный JS/CJS/MJS entrypoint, который реально запускает proxy.
Одного `nvm reshim` недостаточно, чтобы модуль оставался доверенным после следующего self-update.
Также можно переустановить версию или выполнить `nvm doctor --autofix`.

Expand Down
Loading