From issues-return-97123-apmail-cordova-issues-archive=cordova.apache.org@cordova.apache.org Thu Sep 6 13:09:03 2018 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 445601E625 for ; Thu, 6 Sep 2018 13:09:03 +0000 (UTC) Received: (qmail 4853 invoked by uid 500); 6 Sep 2018 13:09:03 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 4835 invoked by uid 500); 6 Sep 2018 13:09:03 -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 4824 invoked by uid 99); 6 Sep 2018 13:09:03 -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; Thu, 06 Sep 2018 13:09:03 +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 850EC1A1131 for ; Thu, 6 Sep 2018 13:09:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.5 X-Spam-Level: X-Spam-Status: No, score=-109.5 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, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100, WEIRD_QUOTING=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id aWmkOW2bPCah for ; Thu, 6 Sep 2018 13:09:01 +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 3CD3B5F382 for ; Thu, 6 Sep 2018 13:09:01 +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 A1F20E0E1D for ; Thu, 6 Sep 2018 13:09: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 37F8F26B56 for ; Thu, 6 Sep 2018 13:09:00 +0000 (UTC) Date: Thu, 6 Sep 2018 13:09:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-14166) Cordova on windows fails when adding plugin 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-14166?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166057= 46#comment-16605746 ]=20 ASF GitHub Bot commented on CB-14166: ------------------------------------- janpio commented on issue #622: CB-14166: (cli) Fixed issue when installing= plugins on windows URL: https://github.com/apache/cordova-lib/pull/622#issuecomment-419086421 =20 =20 So we finally figured out what was going on, please read in the JIRA iss= ue: https://issues.apache.org/jira/browse/CB-14166?focusedCommentId=3D166057= 18&page=3Dcom.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpane= l#comment-16605718 =20 Short version:=20 Nodist, which the issue reported and creator of this PR are using to man= age their local node/npm installations, installs a `npm.exe` next to `npm.c= md` which is then used to execute the command because `which npm` returns i= ts path. It behaves differently, which causes the command to fail for them. =20 Thanks @AlmirKadric for creating this PR anyway, it helped to understand= the problem better.=20 Another PR seems to be incoming that will solve this problem in another = way. =20 PS: `nvm-windows` doesn't have this problem: https://github.com/coreybut= ler/nvm-windows ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > Cordova on windows fails when adding plugin > ------------------------------------------- > > Key: CB-14166 > URL: https://issues.apache.org/jira/browse/CB-14166 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Reporter: takuya > Assignee: Jesse MacFadyen > Priority: Blocker > Attachments: screenshot-1.png, =E3=82=B9=E3=82=AF=E3=83=AA=E3=83= =BC=E3=83=B3=E3=82=B7=E3=83=A7=E3=83=83=E3=83=88 2018-09-06 11.36.42.png > > > cordova on windows fails to add the plugin. > This error happens even when cordova-plugin-whitelist. > Therefore `cordova platform add windows` also fails. > For example, > ``` > > cordova create sample > > cd sample > > cordova platform add windows > ``` > brings following error. > ``` > ... > Check your connection and plugin name/version/URL. > Error: C:\Program Files (x86)\Nodist\bin\npm.exe: Command failed with exi= t code 1 Error output: > npm ERR! code EINVALIDTAGNAME > npm ERR! Invalid tag name ""1"": Tags may not have any characters that en= codeURIComponent encodes. > ``` > This error happens for windows environment only. -- 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