Project

Package Management

ASP.NET Zero React UI uses pnpm (preferred) or NPM to manage front-end library dependencies (like React and Ant Design). The pinned pnpm version is declared in package.json under the packageManager field, so pnpm 10+ (or Corepack, if you run corepack enable) activates the correct version automatically. You can easily add, update, or remove packages using the command line interface.

pnpm 10 or newer is required. pnpm-specific settings (such as shamefullyHoist) are kept in the pnpm-workspace.yaml file next to package.json, because pnpm 11 only reads authentication and registry settings from .npmrc. If you need to change a pnpm setting, edit pnpm-workspace.yaml; see pnpm settings for the available options.

Common Commands

Action pnpm NPM
Install all dependencies pnpm install npm install
Add a new package pnpm add package-name npm install package-name
Add a dev dependency pnpm add -D package-name npm install package-name --save-dev
Update packages pnpm update npm update
Remove a package pnpm remove package-name npm uninstall package-name

Package.json

Dependencies are defined in package.json. After modifying dependencies, run pnpm install or npm install to update your node_modules folder.

Contributors


Last updated: August 05, 2026 Edit this page on GitHub
In this document