Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
pnpm pm | pnpm
[go: Go Back, main page]

Skip to main content
Version: 11.x

pnpm pm

The pnpm pm <command> syntax always runs the built-in pnpm command, bypassing any same-named script in package.json.

Some built-in commands can be overridden by scripts. For example, if your project defines a "clean" script in package.json, then pnpm clean runs that script instead of the built-in pnpm clean. Using pnpm pm clean forces the built-in command to run.

Example

package.json
{
"scripts": {
"clean": "rm -rf dist"
}
}
# Runs the "clean" script from package.json
pnpm clean
# or explicitly:
pnpm run clean

# Runs the built-in pnpm clean command (removes node_modules)
pnpm pm clean