[
https://issues.apache.org/jira/browse/CB-8036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247267#comment-14247267
]
Jan Misker edited comment on CB-8036 at 12/16/14 4:19 PM:
----------------------------------------------------------
If anyone comes here looking for a workaround: I was able to update my project
to Cordova iOS 3.7.0 using the following steps:
# {{cordova platform update ios}} (this fails)
# look for the line which describes where your cordova npm_cache is, in my case
in ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin
# cd to that directory, all to way to the bin folder
# {{mkdir node_modules}}
# {{npm install shelljs}}
Then head back to your project dir and re-run {{cordova platform update ios}}.
The node_modules dir will not be removed by the download of cordova-ios 3.7.0,
thus shelljs inside the node_modules will now be picked up.
was (Author: janmisker):
If anyone comes here looking for a workaround: I was able to update my project
to Cordova iOS 3.7.0 using the following steps:
# {{cordova platform update ios}}
# look for the line which describes where your cordova npm_cache is, in my case
in ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin
# cd to that directory, all to way to the bin folder
# {{mkdir node_modules}}
# {{npm install shelljs}}
Then head back to your project dir and re-run {{cordova platform update ios}}
> Cannot update to 3.7.0
> ----------------------
>
> Key: CB-8036
> URL: https://issues.apache.org/jira/browse/CB-8036
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.7.0
> Environment: OS X Maverics (10.9.5) with XCode 6
> Reporter: Hirbod
>
> Hi,
> before 3.7.0 I could update without any problems from 3.5.0 to 3.6.3
> I tried to update from 3.6.3 to 3.7.0 but now I receive this error:
> cordova 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/Hirbod/.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/Hirbod/.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/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
> at ChildProcess.emit (events.js:98:17)
> at maybeClose (child_process.js:756:16)
> at Process.ChildProcess._handle.onexit (child_process.js:823:5)
> I tried to reinstall shelljs locally and globally but I can't figure out this
> bug.
> Update for Android to version 3.6.4 worked without any problems.
> Of course I've updated phonegap and cordova before (like described in the CLI
> Docs on phonegap.com)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]