Skip to content

Repository files navigation

shim

This repo contains the shims used in NVM for Windows' "shim" operating mode. For details about using shim mode, see the official documentation.

This repo contains several required executables for full Node.js verison management.

  • nvm.exe (cli) is responsible for downloads, (un)installs, caching, and configuration.
  • node.exe (node/README.md) is the shim used to run Node.js, including shim-only flags such as --nvm-use and --nvm-which.
  • proxy.exe (this repo) is the global module shim (npm, npx, custom).
  • reshim.exe (this repo) is a helper utility for syncing shims.
  • sync.exe (private) is a closed source add-on app for identifying updates, releases, and fixes.

Building from Source

This application uses a custom build.zig file shared across the shim directories, plus build.zig.zon (package identity; no remote product deps — first-party modules + Zig std + Windows system libs). Build-tool dep: zig-build-sbom for CycloneDX (zig build sbom; see scripts/Export-ZigBuildSbom.ps1).

Build All

.\build.ps1 -Architecture amd64/arm64

Export shim SBOM (CycloneDX)

.\scripts\Export-ZigBuildSbom.ps1 -App node -OutputPath .\node.cdx.json -Version 2.0.0-alpha.1

Build Node Shim

cd node
.\build.ps1

Build Proxy Shim

cd proxy
.\build.ps1

Build Reshim App

cd reshim
.\build.ps1

About

The nvm-windows shim app.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages