ui icon indicating copy to clipboard operation
ui copied to clipboard

Docs: CLI only works with pnpm dlx not with pnpx

Open FleetAdmiralJakob opened this issue 2 years ago • 2 comments

If I use pnpx I get this error:

node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module 'D:\Program Files (x86)\pnpm\global\5\node_modules\pnpm\bin\pnpx.cjs'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.16.0

FleetAdmiralJakob avatar Jun 01 '23 17:06 FleetAdmiralJakob

pnpx has been deprecated in favor of pnpm dlx in pnpm. 👍

anthonyshew avatar Jun 03 '23 21:06 anthonyshew

pnpx has been deprecated in favor of pnpm dlx in pnpm. 👍

Correct. That's why I think the Docs should be updated

FleetAdmiralJakob avatar Jun 03 '23 22:06 FleetAdmiralJakob