{"library":"pnpm","title":"pnpm","description":"pnpm (performant npm) is a fast, disk space efficient package manager for JavaScript and TypeScript projects. It differentiates itself by using a content-addressable filesystem with hard links and symlinks to store all files from all module directories on a disk, saving significant disk space and speeding up installations, especially in monorepos. The current stable version is 10.33.0, with active development ongoing for the upcoming version 11.0.0, which introduces several breaking changes and new features.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install pnpm"],"cli":{"name":"pnpm","version":null}},"imports":["npx pnpm@latest install","import type { Config } from '@pnpm/types';","import { runPnpm } from '@pnpm/exec';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { execa } from 'execa';\n\nasync function runPnpmInstall(projectPath: string) {\n  try {\n    console.log(`Running pnpm install in ${projectPath}...`);\n    const { stdout, stderr } = await execa('pnpm', ['install'], { cwd: projectPath });\n    console.log('pnpm install stdout:', stdout);\n    if (stderr) {\n      console.warn('pnpm install stderr:', stderr);\n    }\n    console.log('pnpm install completed successfully.');\n  } catch (error: any) {\n    console.error(`Error running pnpm install in ${projectPath}:`, error.message);\n    process.exit(1);\n  }\n}\n\n// Example usage: Ensure you have a 'package.json' in './my-project'\n// or replace './my-project' with an actual path.\nrunPnpmInstall('./');","lang":"typescript","description":"This TypeScript quickstart demonstrates how to programmatically execute `pnpm install` for a project using the `execa` library, which is a common way to interact with CLI tools from Node.js applications. It logs the output and handles potential errors during the installation process.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}