Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

install: support custom build tags

Needed because of joyent/node#4448.
Closes #176.
  • Loading branch information...
commit fbb514defc611d6788ef0361ac2d51e018fb5a4c 1 parent 569859e
@mmalecki mmalecki authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/install.js
View
2  lib/install.js
@@ -60,7 +60,7 @@ function install (gyp, argv, callback) {
}
// 0.x.y-pre versions are not published yet and cannot be installed. Bail.
- if (version[5] === '-pre') {
+ if (version[5] && version[5].match(/\-pre$/)) {
log.verbose('detected "pre" node version', versionStr)
if (gyp.opts.nodedir) {
log.verbose('--nodedir flag was passed; skipping install', gyp.opts.nodedir)
Please sign in to comment.
Something went wrong with that request. Please try again.