UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

18 lines (15 loc) 676 B
#!/usr/bin/env node const [major, minor] = process.version.substr(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.` if (major < 12 || major == 12 && minor < 17) { console.log(`ERROR: This version of pnpm requires at least Node.js v12.17 The current version of Node.js is ${process.version} ${COMPATIBILITY_PAGE}`) process.exit(1) } else if (major == 13 && minor < 7) { console.log(`ERROR: This version of pnpm requires at least Node.js v13.7 The current version of Node.js is ${process.version} ${COMPATIBILITY_PAGE}`) process.exit(1) } require('../dist/pnpm.cjs')