Skip to content

Commit

Permalink
Install: log node-addon-api version if available
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed May 10, 2024
1 parent da655a1 commit b5fddd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/check.js
Expand Up @@ -10,8 +10,8 @@ try {
log(msg);
log('Attempting to build from source via node-gyp');
try {
require('node-addon-api');
log('Found node-addon-api');
const addonApi = require('node-addon-api');
log(`Found node-addon-api ${addonApi.version || ''}`);
} catch (err) {
log('Please add node-addon-api to your dependencies');
return;
Expand Down

0 comments on commit b5fddd7

Please sign in to comment.