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 ED9EF200CB9 for ; Sun, 2 Jul 2017 22:15:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ECDB6160BEE; Sun, 2 Jul 2017 20:15:11 +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 3E211160BDD for ; Sun, 2 Jul 2017 22:15:11 +0200 (CEST) Received: (qmail 61156 invoked by uid 500); 2 Jul 2017 20:15:10 -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 61144 invoked by uid 99); 2 Jul 2017 20:15:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jul 2017 20:15:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2EF941A0172 for ; Sun, 2 Jul 2017 20:15:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id h6Gm17M7m_2i for ; Sun, 2 Jul 2017 20:15:08 +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 AA9005FBEA for ; Sun, 2 Jul 2017 20:15:07 +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 2678FE0641 for ; Sun, 2 Jul 2017 20:15:06 +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 A7A5E245DA for ; Sun, 2 Jul 2017 20:15:03 +0000 (UTC) Date: Sun, 2 Jul 2017 20:15:03 +0000 (UTC) From: "Jan Piotrowski (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12977) Cordova 7 breaks npm install if any declared plugin doesn't contain package.json MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 02 Jul 2017 20:15:12 -0000 [ https://issues.apache.org/jira/browse/CB-12977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071775#comment-16071775 ] Jan Piotrowski commented on CB-12977: ------------------------------------- Does using the `--nofetch` option to install these plugins help? https://cordova.apache.org/docs/en/dev/reference/cordova-cli/index.html#cordova-plugin-command (Strangely this is only documented in the `dev` version of the docs, I created an issue about that: https://issues.apache.org/jira/browse/CB-12978) > Cordova 7 breaks npm install if any declared plugin doesn't contain package.json > -------------------------------------------------------------------------------- > > Key: CB-12977 > URL: https://issues.apache.org/jira/browse/CB-12977 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli, cordova-plugins > Affects Versions: cordova@7.0.0 > Environment: OSX 10.12.15, npm 3.10.10, Cordova 7.0.1 > Reporter: Spence DiNicolantonio > > As of Cordova 7, plugins declared in config.xml are automatically added to dependencies in _package.json_ on prepare. This limits Cordova 7 projects to plugins that are also node packages, as the {{npm install}} process will break if any declared dependency does not contain a valid _package.json_ ([see related npm error|https://github.com/npm/npm/issues/7232]). > Quite a few functioning Cordova plugins (e.g. [CordovaClipboard|https://github.com/VersoSolutions/CordovaClipboard], [PrivacyScreen|https://github.com/Telerik-Verified-Plugins/PrivacyScreen]) live on GitHub and don't contain a _package.json_. In order to use such plugins in conjunction with Cordova 7 without breaking {{npm install}}, we must omit the plugin declarations from config.xml and commit the contents of the _/plugins_ directory. > To be clear, this is not a malfunction of the Cordova CLI. Rather, this is a side-effect of the automated mirroring of _config.xml_ and _package.json_ configuration in Cordova 7. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org