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

Jan Piotrowski (Sujan) commented on CB-14166:
---------------------------------------------

That is strange. The exact same command work just fine for me:

{code}
C:\Projects\Cordova Projects                                                    
       
λ node -v                                                                       
       
v10.7.0                                                                         
       
                                                                                
       
C:\Projects\Cordova Projects                                                    
       
λ npm -v                                                                        
       
6.1.0                                                                           
       
                                                                                
       
C:\Projects\Cordova Projects                                                    
       
λ cordova create CB-14166_4                                                     
       
Creating a new cordova project.                                                 
       
                                                                                
       
C:\Projects\Cordova Projects                                                    
       
λ cd CB-14166_4                                                                 
       
                                                                                
       
C:\Projects\Cordova Projects\CB-14166_4  ([email protected])                     
       
λ 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   
Installing "cordova-plugin-whitelist" for windows                               
       
Adding cordova-plugin-whitelist to package.json                                 
       
Saved plugin info for "cordova-plugin-whitelist" to config.xml                  
       
--save flag or autosave detected                                                
       
Saving windows@~5.0.0 into config.xml file ...                                  
       
                                                                                
       
C:\Projects\Cordova Projects\CB-14166_4  ([email protected])                     
       
λ cordova -v                                                                    
       
8.0.0                                                                           
       
                                                                                
       
C:\Projects\Cordova Projects\CB-14166_4  ([email protected])                     
       
λ                                                                               
       
{code}

 !screenshot-1.png! 

Any idea what could be causing this?


> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to