Skip to content

Commit

Permalink
reverted how install works
Browse files Browse the repository at this point in the history
  • Loading branch information
harismuha123 committed Jun 14, 2023
1 parent 0b8c978 commit 0369f34
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,19 @@ function install(runtime, abi, platform, arch, cb) {

nugget(downloadUrl, nuggetOpts, function (errors) {
if (errors) {
return;
// const error = errors[0];

// if (error.message.indexOf('404') === -1) {
// onerror(error);
// } else {
// console.error(
// 'Prebuild for current platform (' + currentPlatform + ') not found!'
// );
// console.error('Try to build for your platform manually:');
// console.error('# cd node_modules/iohook;');
// console.error('# npm run build');
// console.error('');
// }
const error = errors[0];

if (error.message.indexOf('404') === -1) {
onerror(error);
} else {
console.error(
'Prebuild for current platform (' + currentPlatform + ') not found!'
);
console.error('Try to build for your platform manually:');
console.error('# cd node_modules/iohook;');
console.error('# npm run build');
console.error('');
}
}

let options = {
Expand Down

0 comments on commit 0369f34

Please sign in to comment.