[
https://issues.apache.org/jira/browse/CB-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Filip Maj updated CB-3846:
--------------------------
Fix Version/s: 3.0.0
Description:
I tried to upgrade my version of Cordova to 2.8.19 using npm using the
following command, "sudo npm install -g cordova". This appeared to work but it
resulted in an incomplete install. When I try to build my application I get an
error-> cp: no such file or directory:
/Users/Joe/.cordova/lib/ios/cordova/2.8.0/CordovaLib/cordova.js
Which is because /Users/Joe/.cordova/ is empty.
Reason for this is that on running {{build}}, the tools look to the lazy load
directory to retrieve JS and possibly other bits. Currently, lazy load only
fires by hooking into {{platform add}}. Instead, lazy load should be called
into for almost every command relying on libraries: the platform parsers, and
possibly others.
was:
I tried to upgrade my version of Cordova to 2.8.19 using npm using the
following command, "sudo npm install -g cordova". This appeared to work but it
resulted in an incomplete install. When I try to build my application I get an
error-> cp: no such file or directory:
/Users/Joe/.cordova/lib/ios/cordova/2.8.0/CordovaLib/cordova.js
Which is because /Users/Joe/.cordova/ is empty.
Summary: Upgrading to lazyload version of library breaks under
certain conditions (was: NPM install fails to produce a workable install)
> Upgrading to lazyload version of library breaks under certain conditions
> ------------------------------------------------------------------------
>
> Key: CB-3846
> URL: https://issues.apache.org/jira/browse/CB-3846
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.8.0
> Environment: Mac OS X 10.8.4
> Reporter: Joe Reda
> Assignee: Filip Maj
> Fix For: 3.0.0
>
> Attachments: cordova.log, npminstall.log
>
>
> I tried to upgrade my version of Cordova to 2.8.19 using npm using the
> following command, "sudo npm install -g cordova". This appeared to work but
> it resulted in an incomplete install. When I try to build my application I
> get an error-> cp: no such file or directory:
> /Users/Joe/.cordova/lib/ios/cordova/2.8.0/CordovaLib/cordova.js
> Which is because /Users/Joe/.cordova/ is empty.
> Reason for this is that on running {{build}}, the tools look to the lazy load
> directory to retrieve JS and possibly other bits. Currently, lazy load only
> fires by hooking into {{platform add}}. Instead, lazy load should be called
> into for almost every command relying on libraries: the platform parsers, and
> possibly others.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira