cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Piotrowski (Sujan) (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-14166) Cordova on windows fails when adding plugin
Date Thu, 06 Sep 2018 11:40:00 GMT

    [ https://issues.apache.org/jira/browse/CB-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605674#comment-16605674
] 

Jan Piotrowski (Sujan) edited comment on CB-14166 at 9/6/18 11:39 AM:
----------------------------------------------------------------------

Here is your install command:
{code}
Running command: "C:\Program Files (x86)\Nodist\bin\npm.exe" install cordova-plugin-whitelist@"1"
--production --save
{code}
And here is mine:
{code}
Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install cordova-plugin-whitelist@"1"
--production --save""
{code}

Is it posisble that your `cordova80` wrapper doesn't use the `cmd "/s /c " ... ""` and breaks
the command while doing so? Or why the difference? 

Also mine is run via npm.cmd, yours via npm.exe :/


was (Author: sujan12):
Here is your install command:
{code}
Running command: "C:\Program Files (x86)\Nodist\bin\npm.exe" install cordova-plugin-whitelist@"1"
--production --save
{code}
And here is min:
{code}
Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install cordova-plugin-whitelist@"1"
--production --save""
{code}

Is it posisble that your `cordova80` wrapper doesn't use the `cmd "/s /c " ... ""` and breaks
the command while doing so? Or why the difference? 

Also mine is run via npm.cmd, yours via npm.exe :/

> 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, スクリーンショット 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 exit code 1 Error
output:
> npm ERR! code EINVALIDTAGNAME
> npm ERR! Invalid tag name ""1"": Tags may not have any characters that encodeURIComponent
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


Mime
View raw message