Closed baileyherbert closed 3 years ago
If you get an error that is not listed below, please open a new issue with your OS, Node version, and the full console output.
node_modules
npm install
npm i -g windows-build-tools
node -p "require('node-addon-api').include_dir"
node-addon-api
npm i node-addon-api
gyp
npm config set python /path/to/python
List of common errors
If you get an error that is not listed below, please open a new issue with your OS, Node version, and the full console output.
node_modules
directory and trynpm install
again.npm install
.npm i -g windows-build-tools
as admin, or reinstall Node.js with the build tools option checked.node -p "require('node-addon-api').include_dir"
command is returning an error (or some text in stderr).node-addon-api
below 3.0.2. Trynpm i node-addon-api
gyp
failed with exit code: 1node-addon-api
below 3.0.2. Trynpm i node-addon-api
npm config set python /path/to/python