From issues-return-93569-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Wed Mar 21 22:46:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BCAE3180651 for ; Wed, 21 Mar 2018 22:46:05 +0100 (CET) Received: (qmail 51673 invoked by uid 500); 21 Mar 2018 21:46:04 -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 51662 invoked by uid 99); 21 Mar 2018 21:46:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2018 21:46:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 646B8C0144 for ; Wed, 21 Mar 2018 21:46:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id agVwWeMjfg0Y for ; Wed, 21 Mar 2018 21:46:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 295C95FAC6 for ; Wed, 21 Mar 2018 21:46:02 +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 CA60BE0D7E for ; Wed, 21 Mar 2018 21:46:00 +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 3DF13214D1 for ; Wed, 21 Mar 2018 21:46:00 +0000 (UTC) Date: Wed, 21 Mar 2018 21:46:00 +0000 (UTC) From: "Jon Rista (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13768) cordova-fetch is unable to install from url or file system using package.json MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13768?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164086= 29#comment-16408629 ]=20 Jon Rista commented on CB-13768: -------------------------------- I have experienced this issue as well. This is also for a package we do not= directly depend on, but which appears to be a dependency of one of our dir= ect dependencies (so we cannot remove it, and we have no control over where= it comes from): =C2=A0 ```=E2=86=92 cordova plugin add git+https://github.com/guyromb/Cordova-open= -native-settings.git Error: Failed to fetch plugin git+https://github.com/guyromb/Cordova-open-n= ative-settings.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Failed to get absolute path to installed module``` =C2=A0 This has left us dead in the water for our android builds.=C2=A0 > cordova-fetch is unable to install from url or file system using package.= json > -------------------------------------------------------------------------= ---- > > Key: CB-13768 > URL: https://issues.apache.org/jira/browse/CB-13768 > Project: Apache Cordova > Issue Type: Bug > Reporter: Andrew Crites > Priority: Critical > > This is a big issue in cordova@8 since you can't opt out of cordova-fetch= . Using a url such as `github.com` or the file system for a plugin doesn't = work with package.json. It still works using config.xml: > {code} > > > {code} > This works when running {{cordova platform add}}. However, if you do not = use {{--nosave}} this will update package.json dependencies: > {code} > "cordova-plugin-repo": "git+https://github.com/user/cordova-plugin-re= po#branch", > "local-plugin": "file:src/local-plugin", > {code} > If you try to install with package.json like this, you'll get errors for = these packages: > {code} > Failed to restore plugin "cordova-plugin-repo" from config.xml. You might= need to try adding it again. Error: Failed to fetch plugin https://github.= com/user/cordova-plugin-repo#branch via registry. > Probably this is either a connection problem, or plugin spec is incorrect= . = Check your connection and plugin= name/version/URL. > TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type stri= ng. Received type undefined > Discovered plugin "local-plugin" in config.xml. Adding it to the project > Failed to restore plugin "local-plugin" from config.xml. You might need t= o try adding it again. Error: Failed to fetch plugin file:src/local-plugin = via registry. > Probably this is either a connection problem, or plugin spec is incorrect= . > Check your connection and plugin name/version/URL. = = Failed to get absolute path to i= nstalled module > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org