Skip to content

Make sure a specific version and package-manger to be used in project.

License

Notifications You must be signed in to change notification settings

liwuhou/pm-keeper

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Repository files navigation

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 pm'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

About

Make sure a specific version and package-manger to be used in project.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published