Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
lib
/
node_modules
/
pnpm
/
bin
Upload
4 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
pnpm.cjs
1.08 KB
-rwxr-xr-x
1985-10-26 08:15:00
Edit
Del
pnpx.cjs
122 B
-rwxr-xr-x
1985-10-26 08:15:00
Edit
Del
Editing: pnpm.cjs
(1.08 KB)
Path: /usr/local/lib/node_modules/pnpm/bin/pnpm.cjs
Back
#!/usr/bin/env node const [major, minor] = process.version.slice(1).split('.') const COMPATIBILITY_PAGE = `Visit https://r.pnpm.io/comp to see the list of past pnpm versions with respective Node.js version support.` // We don't use the semver library here because: // 1. it is already bundled to dist/pnpm.cjs, so we would load it twice // 2. we want this file to support potentially older Node.js versions than what semver supports if (major < 18 || major == 18 && minor < 12) { console.error(`ERROR: This version of pnpm requires at least Node.js v18.12 The current version of Node.js is ${process.version} ${COMPATIBILITY_PAGE}`) process.exit(1) } // We need to load v8-compile-cache.js separately in order to have effect try { // Use node.js 22 new API for better performance. if(!require('module')?.enableCompileCache?.()) require('v8-compile-cache'); } catch { // We don't have/need to care about v8-compile-cache failed } global['pnpm__startedAt'] = Date.now() require('../dist/pnpm.cjs') // if you want to debug at your local env, you can use this // require('../lib/pnpm')