Open TiPunch69 opened 3 years ago
Update: I found the problem. The installation for naudiodon fails if there is a space in the path on Mac.
I am not able to install it on MacOS 10.15.7 using npm install. Help would be apreciated. It seems like some dependency/build problem
npm install naudiodon --save npm ERR! code 1 npm ERR! path /Users/tipunch/Development/Xcode Testprojects/ArduinoSoundboard/JavaScript/node_modules/naudiodon npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! COPY ../build/Release/libportaudio.dylib npm ERR! CXX(target) Release/obj.target/naudiodon/src/naudiodonUtil.o npm ERR! CXX(target) Release/obj.target/naudiodon/src/naudiodon.o npm ERR! CXX(target) Release/obj.target/naudiodon/src/GetDevices.o npm ERR! CXX(target) Release/obj.target/naudiodon/src/GetHostAPIs.o npm ERR! CXX(target) Release/obj.target/naudiodon/src/AudioIO.o npm ERR! CXX(target) Release/obj.target/naudiodon/src/PaContext.o npm ERR! SOLINK_MODULE(target) Release/naudiodon.node npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@15.11.0 | darwin | x64 npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/local/opt/python@3.9/bin/python3.9" npm ERR! gyp info spawn /usr/local/opt/python@3.9/bin/python3.9 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/tipunch/Development/Xcode Testprojects/ArduinoSoundboard/JavaScript/node_modules/naudiodon/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/tipunch/Library/Caches/node-gyp/15.11.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/tipunch/Library/Caches/node-gyp/15.11.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/tipunch/Library/Caches/node-gyp/15.11.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/tipunch/Development/Xcode Testprojects/ArduinoSoundboard/JavaScript/node_modules/naudiodon', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../src/PaContext.cc:31:10: warning: unused variable 'outTimestamp' [-Wunused-variable] npm ERR! double outTimestamp = timeInfo->outputBufferDacTime; npm ERR! ^ npm ERR! 1 warning generated. npm ERR! clang: error: no such file or directory: 'Testprojects/ArduinoSoundboard/JavaScript/node_modules/naudiodon/build/Release' npm ERR! clang: error: no such file or directory: '/Users/tipunch/Development/Xcode' npm ERR! clang: error: no such file or directory: 'Testprojects/ArduinoSoundboard/JavaScript/node_modules/naudiodon/build/Release/libportaudio.dylib' npm ERR! make: *** [Release/naudiodon.node] 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.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:378:20) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Darwin 19.6.0 npm ERR! gyp ERR! command "/usr/local/Cellar/node/15.11.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /Users/tipunch/Development/Xcode Testprojects/ArduinoSoundboard/JavaScript/node_modules/naudiodon npm ERR! gyp ERR! node -v v15.11.0 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /Users/tipunch/.npm/_logs/2021-04-05T08_54_12_493Z-debug.log
Didn't solve the issue for me, I have a path with no spaces and still getting this error: /Users/Matias/audio/release/app
/Users/Matias/audio/release/app
Update: I found the problem. The installation for naudiodon fails if there is a space in the path on Mac.
I am not able to install it on MacOS 10.15.7 using npm install. Help would be apreciated. It seems like some dependency/build problem