pm-keeper

1.1.12 • Public • Published

pm-keeper

A simple way to force package-manager in your project.

usage

Add a preinstall script in your project's package.json, link this:

{
  "scripts": {
    "preinstall": "npx pm-keeper npm"
  }
}

And force the package-manager's version

{
  "scripts": {
    "preinstall": "npx pm-keeper npm@6.14.11"
  }
}

or

{
  "scripts": {
    "preinstall": "npx pm-keeper npm 6.14.11"
  }
}

Of course, you can set a options in your package.json, link this:

{
  "scripts": {
    "preinstall": "npx pm-keeper"
  },
  "pmKeeper": {
    "name": "npm",
    "version": "6.14.1" // optional
  }
}

have fun

Readme

Keywords

Package Sidebar

Install

npm i pm-keeper

Weekly Downloads

316

Version

1.1.12

License

MIT

Unpacked Size

69.2 kB

Total Files

7

Last publish

Collaborators

  • liwuhou