Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add check missing node-gyp

Older versions of npm do not give you node-gyp, causing the build the
fail. This is now detected and a better error is given.

Fixes gh-96
  • Loading branch information...
commit 1e0947fa6682769a5542ee0dc51f9c6969b07319 1 parent a92076a
@laverdet authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 build.js
View
9 build.js
@@ -40,7 +40,14 @@ spawn(
{customFds: [0, 1, 2]})
.on('exit', function(err) {
if (err) {
- console.error('Build failed');
+ if (err === 127) {
+ console.error(
+ 'node-gyp not found! Please upgrade your install of npm! You need at least 1.1.5 (I think) '+
+ 'and preferably 1.1.30.'
+ );
+ } else {
+ console.error('Build failed');
+ }
return process.exit(err);
}
afterBuild();
Please sign in to comment.
Something went wrong with that request. Please try again.