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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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, like this:

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

And force the package-manager's version

{
  "scripts": {
    "preinstall": "npx pm-keeper [email protected]"
  }
}

or

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

Of course, you can set a options in your package.json, like 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