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

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

For your `main.js` I get this:

{code}
C:\Projects\experiments\foo                                                     
   
λ node main.js                                                                  
   
events.js:167                                                                   
   
      throw er; // Unhandled 'error' event                                      
   
      ^                                                                         
   
                                                                                
   
Error: spawn npm ENOENT                                                         
   
    at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)   
   
    at onErrorNT (internal/child_process.js:406:16)                             
   
    at process._tickCallback (internal/process/next_tick.js:63:19)              
   
    at Function.Module.runMain (internal/modules/cjs/loader.js:746:11)          
   
    at startup (internal/bootstrap/node.js:240:19)                              
   
    at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)                   
   
Emitted 'error' event at:                                                       
   
    at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)   
   
    at onErrorNT (internal/child_process.js:406:16)                             
   
    [... lines matching original stack trace ...]                               
   
    at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)                   
   
                                                                                
   
C:\Projects\experiments\foo                                                     
   
λ npm -v                                                                        
   
6.1.0                                                                           
   
{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
>         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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to