Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97708108AB for ; Mon, 17 Jun 2013 19:40:20 +0000 (UTC) Received: (qmail 14102 invoked by uid 500); 17 Jun 2013 19:40:20 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 14088 invoked by uid 500); 17 Jun 2013 19:40:20 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 14079 invoked by uid 99); 17 Jun 2013 19:40:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 19:40:20 +0000 Date: Mon, 17 Jun 2013 19:40:20 +0000 (UTC) From: "Filip Maj (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-3846) NPM install fails to produce a workable install MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-3846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685895#comment-13685895 ] Filip Maj commented on CB-3846: ------------------------------- Ahh yes, so running {{build}} immediately after that upgrade would be the issue. Since 2.8.16, the libraries are lazy loaded from a hidden directory in your home dir (as you can see in the error in your situation). So, after upgrading, and going straight to {{build}}, the tools think the libraries should be under the lazy load directory, but since you never called {{platform add}}, they're not actually there. So, in your project, if you go to remove the ios platform and re-add it, it should work. Something like: {code} cd myproject cordova platform rm ios cordova platform add ios cordova build {code} .. should work. Let me know how that pans out for you. > NPM install fails to produce a workable install > ----------------------------------------------- > > 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 > 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. -- 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