Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@antfu/install-pkg

antfu3.7mMIT1.0.0TypeScript support: included

Install package programmatically.

readme

install-pkg

NPM version

Install package programmatically. Detect package managers automatically (npm, yarn, bun and pnpm).

npm i @antfu/install-pkg
import { installPackage } from '@antfu/install-pkg'

await installPackage('vite', { silent: true })

Sponsors

License

MIT License © 2021 Anthony Fu