cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-14166) Cordova on windows fails when adding plugin
Date Thu, 06 Sep 2018 13:09:00 GMT


ASF GitHub Bot commented on CB-14166:

janpio commented on issue #622: CB-14166: (cli) Fixed issue when installing plugins on windows
   So we finally figured out what was going on, please read in the JIRA issue:
   Short version: 
   Nodist, which the issue reported and creator of this PR are using to manage their local
node/npm installations, installs a `npm.exe` next to `npm.cmd` which is then used to execute
the command because `which npm` returns its path. It behaves differently, which causes the
command to fail for them.
   Thanks @AlmirKadric for creating this PR anyway, it helped to understand the problem better.

   Another PR seems to be incoming that will solve this problem in another way.
   PS: `nvm-windows` doesn't have this problem:

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.
For queries about this service, please contact Infrastructure at:

> Cordova on windows fails when adding plugin
> -------------------------------------------
>                 Key: CB-14166
>                 URL:
>             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
> npm ERR! Invalid tag name ""1"": Tags may not have any characters that encodeURIComponent
> ```
> This error happens for windows environment only.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message