Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19670] NodeJS 4.1.1 Doesn't work with Titanium

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2015-10-05T19:26:32.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI
Labelsn/a
ReporterRick Blalock
AssigneeChris Barber
Created2015-10-05T19:19:51.000+0000
Updated2017-03-17T18:03:34.000+0000

Description

on NodeJS v4.1.1, when running a sample app using ti build -p iosI get this:
Error: Cannot find module '/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/sqlite3/lib/binding/node-v46-darwin-x64/node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
---------------------------------------------
    at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)
    at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:945:13
    at Immediate.q.process (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:913:25)
    at processImmediate [as _immediateCallback] (timers.js:374:17)
---------------------------------------------
    at Object.setImmediate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:200:9)
    at _insert (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:861:19)
    at Object.q.push (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:888:17)
    at Object.findExecutable (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:113:8)
    at resolveNode (/usr/local/lib/node_modules/titanium/lib/titanium.js:97:34)
    at /usr/local/lib/node_modules/titanium/lib/titanium.js:74:5
    at Object.<anonymous> (/usr/local/lib/node_modules/titanium/lib/titanium.js:80:2)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)

Comments

  1. Chris Barber 2015-10-05

    Titanium SDK 5.0.x and older do not support Node.js 4 or io.js. Here's the PRs that would have prevented this issue: * https://github.com/appcelerator/titanium_mobile/pull/7151 * https://github.com/appcelerator/titanium_mobile/pull/7162 * https://github.com/appcelerator/titanium_mobile/pull/7188
  2. Lee Morris 2017-03-17

    Closing ticket as invalid.

JSON Source