Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsthatguy/ensure-npm
https://github.com/itsthatguy/ensure-npm
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsthatguy/ensure-npm
- Owner: itsthatguy
- Created: 2017-06-28T19:57:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T18:48:09.000Z (over 6 years ago)
- Last Synced: 2024-08-07T23:13:37.284Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- 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'"
}
```