Npm install aspose.barcode throwing error

I’m trying to use barcode lib of aspose . While installing it with npm , i’m getting below error.

In file included from …/src/java.cpp:1:
npm ERR! …/src/java.h:7:10: fatal error: ‘jni.h’ file not found
npm ERR! #include <jni.h>
npm ERR! ^~~~~~~
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/nodejavabridge_bindings/src/java.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Darwin 23.6.0
npm ERR! gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”

Hi @sidharth.chauhan !
To better assist you with resolving this issue, could you please provide the following details:

The specific command you are running:
For example, are you running npm install aspose-barcode-cloud-node or a different command?

The version of the Aspose.BarCode library you are trying to install:
You can find this information in your package.json or the specific version you are attempting to install.

The versions of Node.js and npm installed on your computer:
You can check this by running the following commands in your terminal:

node -v
npm -v

Additionally, it might be useful to know your operating system version and any other relevant environment details.

This information will help us diagnose the issue more accurately and provide a more targeted solution.

Thank you!