[
https://issues.apache.org/jira/browse/CB-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605180#comment-16605180
]
Ken Naito edited comment on CB-14166 at 9/6/18 2:23 AM:
--------------------------------------------------------
[~Sujan12] My log in cmder is following.
{code}
C:\Users\knaito\Documents\work\cordova
λ node -v
v10.5.0
C:\Users\knaito\Documents\work\cordova
λ npm -v
6.1.0
C:\Users\knaito\Documents\work\cordova
λ cordova80 create sample80C
node
"C:\Users\knaito\Documents\App\cordova\cordova80\node_modules\cordova\bin\cordova"
create sample80C
Creating a new cordova project.
C:\Users\knaito\Documents\work\cordova
λ cd sample80C
C:\Users\knaito\Documents\work\cordova\sample80C ([email protected])
λ cordova80 platform add [email protected]
node
"C:\Users\knaito\Documents\App\cordova\cordova80\node_modules\cordova\bin\cordova"
platform add [email protected]
Using cordova-fetch for [email protected]
Adding windows project...
Creating Cordova Windows Project:
Path: platforms\windows
Namespace: io.cordova.hellocordova
Name: HelloCordova
Windows project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the
project
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might
need to try adding it again. Error: Failed to fetch plugin
cordova-plugin-whitelist@1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
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.
npm ERR! A complete log of this run can be found in:
npm ERR!
C:\Users\knaito\AppData\Roaming\npm-cache\_logs\2018-09-06T02_17_57_386Z-debug.log
--save flag or autosave detected
Saving windows@~5.0.0 into config.xml file ...
{code}
and cordova80 is link to cordova 8.0.0.
{code}
λ cordova80 -v
node
"C:\Users\knaito\Documents\App\cordova\cordova80\node_modules\cordova\bin\cordova"
-v
8.0.0
C:\Users\knaito\Documents\work\cordova\sample80C ([email protected])
{code}
was (Author: knaito):
[~Sujan12] My log in cmder is following.
{code}
C:\Users\knaito\Documents\work\cordova
λ node -v
v10.5.0
C:\Users\knaito\Documents\work\cordova
λ npm -v
6.1.0
C:\Users\knaito\Documents\work\cordova
λ cordova80 create sample80C
node
"C:\Users\knaito\Documents\App\cordova\cordova80\node_modules\cordova\bin\cordova"
create sample80C
Creating a new cordova project.
C:\Users\knaito\Documents\work\cordova
λ cd sample80C
C:\Users\knaito\Documents\work\cordova\sample80C ([email protected])
λ cordova80 platform add [email protected]
node
"C:\Users\knaito\Documents\App\cordova\cordova80\node_modules\cordova\bin\cordova"
platform add [email protected]
Using cordova-fetch for [email protected]
Adding windows project...
Creating Cordova Windows Project:
Path: platforms\windows
Namespace: io.cordova.hellocordova
Name: HelloCordova
Windows project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the
project
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might
need to try adding it again. Error: Failed to fetch plugin
cordova-plugin-whitelist@1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
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.
npm ERR! A complete log of this run can be found in:
npm ERR!
C:\Users\knaito\AppData\Roaming\npm-cache\_logs\2018-09-06T02_17_57_386Z-debug.log
--save flag or autosave detected
Saving windows@~5.0.0 into config.xml file ...
{code}
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]