Skip to content

Unable to install on Mac M3 #244

@demym

Description

@demym

Hi all,

i am unable to install jdbc on a MacBook M3.

This is the result of npm install jdbc

npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported npm error code 1 npm error path /Users/demetriomortelliti/Desktop/demy/PROJECTS/cartellesanitarie/node_modules/java npm error command failed npm error command sh -c node-gyp rebuild npm error CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@11.1.0 npm error gyp info using node@20.17.0 | darwin | arm64 npm error gyp info find Python using Python version 3.13.2 found at "/Library/Frameworks/Python.framework/Versions/3.13/bin/python3" npm error gyp info spawn /Library/Frameworks/Python.framework/Versions/3.13/bin/python3 npm error gyp info spawn args [ npm error gyp info spawn args '/Users/demetriomortelliti/node_modules/node-gyp/gyp/gyp_main.py', npm error gyp info spawn args 'binding.gyp', npm error gyp info spawn args '-f', npm error gyp info spawn args 'make', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/demetriomortelliti/Desktop/demy/PROJECTS/cartellesanitarie/node_modules/java/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/demetriomortelliti/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/Users/demetriomortelliti/Library/Caches/node-gyp/20.17.0/include/node/common.gypi', npm error gyp info spawn args '-Dlibrary=shared_library', npm error gyp info spawn args '-Dvisibility=default', npm error gyp info spawn args '-Dnode_root_dir=/Users/demetriomortelliti/Library/Caches/node-gyp/20.17.0', npm error gyp info spawn args '-Dnode_gyp_dir=/Users/demetriomortelliti/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/Users/demetriomortelliti/Library/Caches/node-gyp/20.17.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/Users/demetriomortelliti/Desktop/demy/PROJECTS/cartellesanitarie/node_modules/java', npm error gyp info spawn args '-Dnode_engine=v8', npm error gyp info spawn args '--depth=.', npm error gyp info spawn args '--no-parallel', npm error gyp info spawn args '--generator-output', npm error gyp info spawn args 'build', npm error gyp info spawn args '-Goutput_dir=.' npm error gyp info spawn args ] npm error gyp info spawn make npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm error In file included from ../src/java.cpp:1: npm error ../src/java.h:7:10: fatal error: 'jni.h' file not found npm error 7 | #include <jni.h> npm error | ^~~~~~~ npm error 1 error generated. npm error make: *** [Release/obj.target/nodejavabridge_bindings/src/java.o] Error 1 npm error gyp ERR! build error npm error gyp ERR! stack Error: make failed with exit code: 2 npm error gyp ERR! stack at ChildProcess.<anonymous> (/Users/demetriomortelliti/node_modules/node-gyp/lib/build.js:216:23) npm error gyp ERR! System Darwin 23.6.0 npm error gyp ERR! command "/usr/local/bin/node" "/Users/demetriomortelliti/node_modules/.bin/node-gyp" "rebuild" npm error gyp ERR! cwd /Users/demetriomortelliti/Desktop/demy/PROJECTS/cartellesanitarie/node_modules/java npm error gyp ERR! node -v v20.17.0 npm error gyp ERR! node-gyp -v v11.1.0 npm error gyp ERR! not ok npm error A complete log of this run can be found in: /Users/demetriomortelliti/.npm/_logs/2025-03-25T08_59_16_874Z-debug-0.log

Can someone help ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions