Skip to content

Commit 9cec25a

Browse files
committed
fix: Installation will now fail if your npm is not up to date
1 parent d0e9165 commit 9cec25a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ cross-platform way. Initially, it will provide a streamlined experience for deve
1919

2020
## Installation from npm
2121

22-
First, make sure your `npm` is up to date:
22+
First, make sure your `npm` is up to date.
23+
You will need npm greater than version `3.0.0`:
2324

2425
npm install --global npm
2526

@@ -31,7 +32,7 @@ Install `web-ext`:
3132

3233
You'll need:
3334
* [Node.js](https://nodejs.org/en/), 0.12 or higher
34-
* [npm](https://www.npmjs.com/), 3.x or higher
35+
* [npm](https://www.npmjs.com/), 3.0.0 or higher
3536

3637
Optionally, you may like:
3738
* [nvm](https://github.com/creationix/nvm), which helps manage node versions

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"version": "1.1.0",
44
"description": "A command line tool to help build, run, and test web extensions",
55
"main": "dist/web-ext.js",
6+
"engines": {
7+
"node": ">=0.12",
8+
"npm": ">=3.0.0"
9+
},
10+
"engine-strict": true,
611
"bin": {
712
"web-ext": "bin/web-ext"
813
},

0 commit comments

Comments
 (0)