From 8c374e2136294d3357ecc8a13d6563e5341e09bd Mon Sep 17 00:00:00 2001 From: Austin Pray Date: Wed, 4 Feb 2015 19:35:41 -0600 Subject: [PATCH] Require the latest version of npm The npm that ships with 0.10 is 1.2.x and it is riddled with race conditions. --- .travis.yml | 8 ++------ README.md | 3 ++- package.json | 3 ++- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1b5dea7..9d20eb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,14 @@ sudo: false language: php -cache: - directories: - - node_modules php: - '5.6' - '5.5' - '5.4' before_install: - - npm cache clean - - npm prune + - npm install -g npm@latest - npm install -g bower gulp jscs - - npm update + - npm install - pyrus install pear/PHP_CodeSniffer - phpenv rehash diff --git a/README.md b/README.md index bbcaac8..c3c9437 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Sage is a WordPress starter theme based on [HTML5 Boilerplate](http://html5boile * PHP >= 5.4 * Node.js >= 0.10 +* npm >= 2.1.5 * gulp (`npm install -g gulp`) * Bower (`npm install -g bower`) @@ -71,7 +72,7 @@ Sage uses [gulp](http://gulpjs.com/) as its build system and [Bower](http://bowe ### Install gulp and Bower -**Unfamiliar with npm? Don't have node installed?** [Download and install node.js](http://nodejs.org/download/) before proceeding. +Building the theme requires [node.js](http://nodejs.org/download/). We recommend you update to the latest version of npm: `npm install -g npm@latest`. From the command line: diff --git a/package.json b/package.json index 5c914ae..95a580e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "jscs": "jscs gulpfile.js assets/scripts/*.js" }, "engines": { - "node": ">= 0.10.0" + "node": ">= 0.10.0", + "npm": ">=2.1.5" }, "devDependencies": { "asset-builder": "^0.3.5",