Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6D9E2200C7D for ; Mon, 1 May 2017 15:07:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6C69D160BAB; Mon, 1 May 2017 13:07:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BC227160BAE for ; Mon, 1 May 2017 15:07:07 +0200 (CEST) Received: (qmail 66495 invoked by uid 500); 1 May 2017 13:07:07 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 66480 invoked by uid 99); 1 May 2017 13:07:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2017 13:07:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6C2CED7EDC for ; Mon, 1 May 2017 13:07:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PtaFnXeTCrNK for ; Mon, 1 May 2017 13:07:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A75A55FCE3 for ; Mon, 1 May 2017 13:07:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CFA25E0D50 for ; Mon, 1 May 2017 13:07:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 30DEC21DE7 for ; Mon, 1 May 2017 13:07:04 +0000 (UTC) Date: Mon, 1 May 2017 13:07:04 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10681) Fetching a template when a older version exists in npm cache causes error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 01 May 2017 13:07:08 -0000 [ https://issues.apache.org/jira/browse/CB-10681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990784#comment-15990784 ] ASF subversion and git services commented on CB-10681: ------------------------------------------------------ Commit 393118f9009c2931a23a528bac73b5e35aab2c52 in cordova-create's branch refs/heads/master from [~stevegill] [ https://git-wip-us.apache.org/repos/asf?p=cordova-create.git;h=393118f ] CB-10681: templates will add @latest when fetching from npm when no version is specified. This will ensure an older cahced version of the template is not used > Fetching a template when a older version exists in npm cache causes error > ------------------------------------------------------------------------- > > Key: CB-10681 > URL: https://issues.apache.org/jira/browse/CB-10681 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaLib > Affects Versions: 6.0.0 > Reporter: Steve Gill > Assignee: Steve Gill > Labels: cordova-fetch, triaged > Fix For: 6.1.0 > > > Message from Holly > Hey Steve, I know you're not there now but when you have a second, I wanted to see if you could try to create a template with the F7 template thru cordova or phonegap (or both) and let me know if it works ok. I had republished it to npm yesterday but had a previous version in my local npm cache and it was throwing an error when creating the template. I deleted that `npm_cache` folder in `~/.cordova/lib` then it worked ok. The error I got before that was `Error: Failed to retrieve phonegap-template-framework7 from NPM.` It's thrown as a result of the `npmAddCache()` method -> https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/remote_load.js#L64 and returned back to the `create.js` module https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/create.js#L213 from the `npmFetch()`. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org