1.1.0 • Published 1 year ago
please-use-pnpm-en v1.1.0
please-use-pnpm
Force using pnpm in the project
When using npm i
or pnpm
to install the package, an error will be thrown and the installation will stop.
Usage
Update package.json
:
{
"scripts": {
"preinstall": "npx please-use-pnpm"
}
}
Note: If you don’t want to see npx: 1 installed successfully, took xxxx seconds
, you can use the --quiet
option (or -q
):
{
"scripts": {
"preinstall": "npx -q please-use-pnpm"
}
}
License
1.1.0
1 year ago