node-pre-gyp
Advanced tools
Comparing version 0.6.27 to 0.6.28
# node-pre-gyp changelog | ||
## 0.6.28 | ||
- Now more verbose when remote binaries are not available. This is needed since npm is increasingly more quiet by default | ||
and users need to know why builds are falling back to source compiles that might then error out. | ||
## 0.6.27 | ||
@@ -4,0 +9,0 @@ |
@@ -115,2 +115,12 @@ "use strict"; | ||
function print_fallback_error(err,opts,package_json) { | ||
var fallback_message = ' (falling back to source compile with node-gyp)'; | ||
var full_message = "Pre-built binaries not found for " + package_json.name + "@" + package_json.version; | ||
full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI)"; | ||
full_message += fallback_message; | ||
log.error("Tried to download: " + opts.hosted_tarball); | ||
log.error(full_message); | ||
log.http(err.message); | ||
} | ||
function install(gyp, argv, callback) { | ||
@@ -155,3 +165,3 @@ var package_json = JSON.parse(fs.readFileSync('./package.json')); | ||
if (should_do_fallback_build) { | ||
log.http(err.message + ' (falling back to source compile with node-gyp)'); | ||
print_fallback_error(err,opts,package_json); | ||
return do_build(gyp,argv,callback); | ||
@@ -176,3 +186,3 @@ } else { | ||
if (err && should_do_fallback_build) { | ||
log.http(err.message + ' (falling back to source compile with node-gyp)'); | ||
print_fallback_error(err,opts,package_json); | ||
return do_build(gyp,argv,callback); | ||
@@ -179,0 +189,0 @@ } else if (err) { |
{ | ||
"name": "node-pre-gyp", | ||
"description": "Node.js native addon binary install tool", | ||
"version" : "0.6.27", | ||
"version" : "0.6.28", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "native", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111959
2520