Skip to content

How to use the pnpm store prune command via viteplus #1930

Description

@bd-dxg

Describe the bug

My environment is as follows: I directly installed the Vite Plus script, which downloaded pnpm 11.8.0 and NodeJS. I want to know how to execute the pnpm store prune command? Because executing it directly results in an error.

pnpm : The term 'pnpm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was inclu
ded, verify that the path is correct and try again.
At D:\greensoft\powerScript\pnpm-cli.ps1:5 char:17
+ function pmsp { pnpm store prune }
+                 ~~~~
    + CategoryInfo          : ObjectNotFound: (pnpm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Reproduction

null

Steps to reproduce

No response

System Info

current:

Environment:
  Version  24.18.0
  Source   lts

Tool Paths:
  node  C:\Users\bddxg\.vite-plus\js_runtime\node\24.18.0\node.exe
  npm   C:\Users\bddxg\.vite-plus\js_runtime\node\24.18.0\npm.cmd
  npx   C:\Users\bddxg\.vite-plus\js_runtime\node\24.18.0\npx.cmd

Package Manager:
  Name          pnpm
  Version       11.8.0
  Source        devEngines.packageManager
  Source Path   D:\code\front-end\vision-to-reality\package.json
  Project Root  D:\code\front-end\vision-to-reality
  Bin Path      C:\Users\bddxg\.vite-plus\package_manager\pnpm\11.8.0\pnpm\bin\pnpm.cmd

vp:

Local vite-plus:
  vite-plus  v0.2.1

Tools:
  vite             v8.0.16
  rolldown         v1.1.1
  vitest           v4.1.9
  oxfmt            v0.55.0
  oxlint           v1.70.0
  oxlint-tsgolint  v0.23.0
  tsdown           v0.22.3

Environment:
  Package manager  pnpm v11.8.0
  Node.js          v24.18.0

Used Package Manager

pnpm

Logs

Validations

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions