Search code examples
titaniummacos-catalinanode-gyp

Titanium app compilation error with node-gyp


I'm trying to compile a Titanium app (on iOS) with a new computer. But when I launch the compilation, I'm facing an error I don't understand :

Failed to execute '/usr/local/Cellar/node/13.8.0/bin/node /Users/clement/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/clement/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node --module_name=node_ios_device --module_path=/Users/clement/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA/node_modules/node-ios-device/binding/node-v79-darwin-x64 --napi_version=5 --node_abi_napi=napi'

I saw it could be because of the space in "Application Support" ?

I don't understand the problem. Could someone help me ?

Thanks a lot :)


Solution

  • Change your nodejs version to 10.x (https://nodejs.org/dist/latest-v10.x/) and install the CLI again: npm install -g titanium appcelerator alloy and run the build process again.

    05/2020 - Titanium SDK 9: you can now use Node 12.x!