From 9cec25a2174076dc1193ec23a60af0d029f20bb1 Mon Sep 17 00:00:00 2001 From: Kumar McMillan Date: Wed, 29 Jun 2016 14:26:06 -0500 Subject: [PATCH] fix: Installation will now fail if your npm is not up to date --- README.md | 5 +++-- package.json | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66c7f2d5bd..121f10cb97 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ cross-platform way. Initially, it will provide a streamlined experience for deve ## Installation from npm -First, make sure your `npm` is up to date: +First, make sure your `npm` is up to date. +You will need npm greater than version `3.0.0`: npm install --global npm @@ -31,7 +32,7 @@ Install `web-ext`: You'll need: * [Node.js](https://nodejs.org/en/), 0.12 or higher -* [npm](https://www.npmjs.com/), 3.x or higher +* [npm](https://www.npmjs.com/), 3.0.0 or higher Optionally, you may like: * [nvm](https://github.com/creationix/nvm), which helps manage node versions diff --git a/package.json b/package.json index faa04e187b..e4ebcc50a1 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,11 @@ "version": "1.1.0", "description": "A command line tool to help build, run, and test web extensions", "main": "dist/web-ext.js", + "engines": { + "node": ">=0.12", + "npm": ">=3.0.0" + }, + "engine-strict": true, "bin": { "web-ext": "bin/web-ext" },