mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.12k stars 263 forks source link

Node-API version conflict for @mapbox #616

Closed pegah5665 closed 3 years ago

pegah5665 commented 3 years ago

Hi, I have below error when run my project on node.js:


node-pre-gyp info This Node instance does not support builds for Node-API version 3 .../node_modules/@mapbox/node-pre-gyp/lib/util/napi.js:82 throw new Error( ^ Error: The Node-API version of this Node instance is 1. This module supports Node-API version(s) 3. This Node instance cannot run this module. at Object.module.exports.validate_package_json (.../node_modules/@mapbox/node-pre-gyp/lib/util/napi.js:82:11) at Object.validate_config (.../node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js:229:8) at Object.exports.find (.../node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js:25:14) at Object. (.../node_modules/bcrypt/bcrypt.js:5:31) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17)

node version: v14.2.0 npm version: 6.14.4 os: Virtualization: vmware Operating System: Ubuntu 18.04.6 LTS Kernel: Linux 4.15.0-159-generic Architecture: x86-64

springmeyer commented 3 years ago

As far as I can tell, this is a bcrypt issue. What version of bcrypt are you using? I recommend filing an issue at the bcrypt repository.