Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15023] CLI: Missing dependencies prevent building for device

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2013-09-26T20:07:36.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsCLI
Labelsqe-3.2.0
ReporterEric Merriman
AssigneeChris Barber
Created2013-08-31T00:28:07.000+0000
Updated2017-03-22T21:29:17.000+0000

Description

Description:

While trying to perform a functional review on an SDK pull request for master, we were unable to build. It seems this is caused by missing dependencies. Bryan came over to help resolve, but encountered the same problem on his system. Missing is:
[ERROR] Error: Cannot find module 'semver'
[ERROR] Error: Cannot find module 'sprintf'
The result when trying to build is typically:
[ERROR] Failed to load command "build"
[ERROR] Error: Cannot find module 'sprintf'

at Object.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/exception.js:33:27)
    at Module._compile (module.js:456:26)
    at Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/auth.js:25:18)
    at Module._compile (module.js:456:26)
    at Module._extensions..js (module.js:474:10)

Steps to reproduce:

1) Install a build of master 2) Update to CLI 1.2.0 using: sudo npm install -g git://github.com/appcelerator/titanium.git 3) Copy node_appc 0.2.0 into the SDK if it does not exist 4) Attempt to build for iOS device via studio

Result:

Failure to build

Expected Result:

Project builds and installs to iTunes, sync starts

Comments

  1. Chris Barber 2013-09-26

    You can't just copy node-appc into the Titanium CLI's node_modules dir. You need to "cd" into the node-appc directory and run "npm install" to download all dependencies. This is a non-issue today anyways. I've updated the Titanium CLI's node-appc dependency to pull directly from git and thus master Titanium CLI will have master node-appc and everything will work.
  2. Lee Morris 2017-03-22

    Closing ticket as "Won't Fix".

JSON Source