Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itsthatguy/ensure-npm


https://github.com/itsthatguy/ensure-npm

Last synced: about 6 hours ago
JSON representation

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'"
}
```