diff --git a/README.md b/README.md index 8c7ab05aa..73ea6ee6b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ NodeGit ***NOTE: NodeGit currently does not work with [iojs on windows](https://github.com/rvagg/pangyp/issues/4)*** -**Stable: 0.3.1** +**Stable: 0.3.2** ## Have a problem? Come chat with us! ## diff --git a/lifecycleScripts/install.js b/lifecycleScripts/install.js index 7b5f8dc93..c5a8f0bae 100644 --- a/lifecycleScripts/install.js +++ b/lifecycleScripts/install.js @@ -110,12 +110,15 @@ function build() { target = "--target=" + nwVersion; } - builder = path.resolve(".", "node_modules", ".bin", builder); - builder = builder.replace(/\s/g, "\\$&"); - var cmd = [prefix, builder, "rebuild", target, debug, distUrl] - .join(" ").trim(); + return exec("npm install " + builder) + .then(function() { + builder = path.resolve(".", "node_modules", ".bin", builder); + builder = builder.replace(/\s/g, "\\$&"); + var cmd = [prefix, builder, "rebuild", target, debug, distUrl] + .join(" ").trim(); - return exec(cmd, opts) + return exec(cmd, opts); + }) .then(function() { console.info("[nodegit] Compilation complete."); console.info("[nodegit] Completed installation successfully."); diff --git a/package.json b/package.json index 34901e4ff..15f97030b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nodegit", "description": "Node.js libgit2 asynchronous native bindings", - "version": "0.3.1", + "version": "0.3.2", "libgit2": { "url": "https://github.com/nodegit/libgit2/tarball/4b3a1899ff37dddba0a095487505fed9ede101b1", "sha": "4b3a1899ff37dddba0a095487505fed9ede101b1",