You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2015/01/09 02:46:35 UTC
[jira] [Resolved] (CB-8277) platform update isn't working
[ https://issues.apache.org/jira/browse/CB-8277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-8277.
-------------------------------
Resolution: Duplicate
Definitely a dupe!
> platform update isn't working
> -----------------------------
>
> Key: CB-8277
> URL: https://issues.apache.org/jira/browse/CB-8277
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.7.0
> Reporter: Josh Soref
>
> Trying to install facebook-plugin:
> {quote}
> $ cordova plugin add ~/Cordova/phonegap-facebook-plugin --variable APP_ID=616451688482285 --variable APP_NAME="hybrid-app"
> Installing "com.phonegap.plugins.facebookconnect" for android
> Installing "com.phonegap.plugins.facebookconnect" for blackberry10
> Installing "com.phonegap.plugins.facebookconnect" for ios
> Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin doesn't support this project's cordova version. cordova: 3.4.0, failed version requirement: >=3.5.0
> ...
> Plugin doesn't support this project's cordova version. cordova: 3.4.0, failed version requirement: >=3.5.0
> {quote}
> ok, so let's update ios:
> {quote}
> $ cordova platform update ios
> {quote}
> {quote}
> 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> (~/.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: ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: Command failed with exit code 8
> at ChildProcess.whenDone (cordova-lib/src/cordova/superspawn.js:135:23)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at maybeClose (child_process.js:735:16)
> at Process.ChildProcess._handle.onexit (child_process.js:802:5)
> {quote}
> shelljs is listed in the package.json:
> {quote}
> $ grep shelljs ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/package.json
> "shelljs": "^0.2.6",
> {quote}
> but it isn't included:
> {quote}
> $ find ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package -name shelljs|wc -l
> 0
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org