https://github.com/itsthatguy/ensure-npm
https://github.com/itsthatguy/ensure-npm
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsthatguy/ensure-npm
- Owner: itsthatguy
- Created: 2017-06-28T19:57:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T18:48:09.000Z (about 8 years ago)
- Last Synced: 2025-06-05T01:53:30.874Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ensure-npm
Use this to make sure that your users are using the right version of npm.
### cli usage
```
$ ensure-npm '5.0.0'
$ ensure-npm '>= 4.3.0'
```
### use with npm install
Install it to your project as a devDependency
```sh
$ npm install ensure-npm --save-dev
```
Then edit your package.json
```
# package.json
"scripts": {
"preinstall": "ensure-npm '>=5.0.4'"
}
```