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 A340B200D42 for ; Fri, 17 Nov 2017 16:02:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A2181160C0B; Fri, 17 Nov 2017 15:02:05 +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 F160D160C0A for ; Fri, 17 Nov 2017 16:02:04 +0100 (CET) Received: (qmail 88460 invoked by uid 500); 17 Nov 2017 15:02: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 88444 invoked by uid 99); 17 Nov 2017 15:02:04 -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; Fri, 17 Nov 2017 15:02:04 +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 3D81F1A138B for ; Fri, 17 Nov 2017 15:02:03 +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 3KK6q4lOWzJD for ; Fri, 17 Nov 2017 15:02:02 +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 937AD5FE2F for ; Fri, 17 Nov 2017 15:02: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 D4936E0EFA for ; Fri, 17 Nov 2017 15:02: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 842A3240E2 for ; Fri, 17 Nov 2017 15:02:00 +0000 (UTC) Date: Fri, 17 Nov 2017 15:02:00 +0000 (UTC) From: "Lukas Plachy (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-13588) cordova-create fail to copy template on Windows when nodejs global node_modules are installed in a different directory than the default one (AppData\Roaming) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Nov 2017 15:02:05 -0000 [ https://issues.apache.org/jira/browse/CB-13588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukas Plachy updated CB-13588: ------------------------------ Summary: cordova-create fail to copy template on Windows when nodejs global node_modules are installed in a different directory than the default one (AppData\Roaming) (was: cordova-create fail to copy template on Windows when nodejs global node_modules where it is installed in is in a different directory than the default one (AppData\Roaming)) > cordova-create fail to copy template on Windows when nodejs global node_modules are installed in a different directory than the default one (AppData\Roaming) > ------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CB-13588 > URL: https://issues.apache.org/jira/browse/CB-13588 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-create > Reporter: Lukas Plachy > Attachments: correct__g_install_fail_npmrc.png, correct__g_install_fail_using_prefix.png > > > If the npm is run without the wrong(*) content in npmrc, then as you may see, cordova create fails again in the very same way, even when the npm is allready able to work as expected. [^correct__g_install_fail_npmrc.png] > If you are not comfort with the "local install" override (CB-13587), or the npmrc content deletition, then you might find the command '*npm install -g cordova --prefix D:\mynodejsdirectory*' more compliant with correct usage. And as you may see ([^correct__g_install_fail_using_prefix.png]), the error is manifested in all three (**) soltuions presented here, in tow of them despite the required '-g' install. > (*) incorrect handling of npmrc file containing the string 'prefix=${APPDATA}\npm' in contrast to the expected behvaior as described in https://docs.npmjs.com/cli/npm#directories > (**) The third one is to install the module into the global node_modules in the nodejs installation directory in the same manner as a local install (eg. cd into my_nodejs_install_dir and doing an 'npm install cordova') which however due to a higher reason has been agreed as an unsupported method, for details see CB-13587) -- 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