iOS platform upgrade fails

577 views
Skip to first unread message

Chris Haynes

unread,
Jan 19, 2015, 12:29:12 PM1/19/15
to phon...@googlegroups.com
https://build.phonegap.com/apps recommended upgrading. I had 4.1.2-0.22.10 installed. 

sudo npm update -g phonegap seemed to work, 
   home:~/dda/phonegap 517# phonegap -v
   4.2.0-0.23.0

But from my app directory, the iOS platform upgrade fails:

home:~/dda/DDFlash 527# phonegap platform update ios


module.js:340
    throw err;
          ^
Error: Cannot find module 'shelljs'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/home/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update:21:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

Error: /Users/home/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: Command failed with exit code 8
    at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

Chris Haynes

unread,
Jan 28, 2015, 4:41:12 PM1/28/15
to phon...@googlegroups.com
Found fix at https://issues.apache.org/jira/browse/CB-8036, where it is reported that the problem will be fixed in release 3.8.0 of cordova.ios.

Yama

unread,
Jan 29, 2015, 10:50:04 AM1/29/15
to phon...@googlegroups.com
run cd /Users/home/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin

npm install shelljs
Reply all
Reply to author
Forward
0 new messages