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

Ken Naito commented on CB-14166:
--------------------------------

I tried again with verbose option.

{code}
C:\Users\knaito\Documents\work\cordova
λ cordova80 create CB-14166

node 
"C:\Users\knaito\Documents\App\cordova\cordova80\node_modules\cordova\bin\cordova"
 create CB-14166
Creating a new cordova project.

C:\Users\knaito\Documents\work\cordova
λ cd CB-14166

C:\Users\knaito\Documents\work\cordova\CB-14166  ([email protected])
λ cordova80 platform add [email protected] -d

node 
"C:\Users\knaito\Documents\App\cordova\cordova80\node_modules\cordova\bin\cordova"
 platform add [email protected] -d
No scripts found for hook "before_platform_add".
Using cordova-fetch for [email protected]
saving
Running command: "C:\Program Files (x86)\Nodist\bin\npm.exe" install 
[email protected] --production --save
Command finished with error code 0: C:\Program Files (x86)\Nodist\bin\npm.exe 
install,[email protected],--production,--save
Removing "cordova-" prefix from cordova-windows
Adding windows project...
PlatformApi successfully found for platform windows
Creating Cordova Windows Project:
        Path: platforms\windows
        Namespace: io.cordova.hellocordova
        Name: HelloCordova
Copying windows template project to 
C:\Users\knaito\Documents\work\cordova\CB-14166\platforms\windows
Copying cordova-js sources to platform_www
Copying node_modules to 
C:\Users\knaito\Documents\work\cordova\CB-14166\platforms\windows
Updating manifest files with project configuration.
Windows project created with [email protected]
Checking for any plugins added to the project that have not been installed in 
windows platform
No differences found between plugins added to project and installed in windows 
platform. Continuing...
PlatformApi successfully found for platform windows
Merging project's config.xml into platform-specific windows config.xml
Merging and updating files from [www, platforms\windows\platform_www] to 
platforms\windows\www
  mkdir platforms\windows\www\cordova-js-src
  copy  platforms\windows\platform_www\cordova-js-src\confighelper.js 
platforms\windows\www\cordova-js-src\confighelper.js (new file)
  copy  platforms\windows\platform_www\cordova-js-src\exec.js 
platforms\windows\www\cordova-js-src\exec.js (new file)
  copy  platforms\windows\platform_www\cordova-js-src\platform.js 
platforms\windows\www\cordova-js-src\platform.js (new file)
  copy  platforms\windows\platform_www\cordova-js-src\splashscreen.js 
platforms\windows\www\cordova-js-src\splashscreen.js (new file)
  copy  platforms\windows\platform_www\cordova.js 
platforms\windows\www\cordova.js (updated file)
  copy  platforms\windows\platform_www\css\splashscreen.css 
platforms\windows\www\css\splashscreen.css (updated file)
  delete platforms\windows\www\img\smalllogo.png (no source)
  delete platforms\windows\www\img\splashscreen.png (no source)
  delete platforms\windows\www\img\storelogo.png (no source)
  copy  www\index.html platforms\windows\www\index.html (updated file)
  copy  www\js\index.js platforms\windows\www\js\index.js (updated file)
This app does not have any icons or splash screens defined
Prepared windows project successfully
No scripts found for hook "pre_package".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been 
added to the project
Checking config.xml for saved plugins that haven't been added to the project
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "cordova-plugin-whitelist@1"
saving
Running command: "C:\Program Files (x86)\Nodist\bin\npm.exe" install 
cordova-plugin-whitelist@"1" --production --save
Command finished with error code 1: C:\Program Files (x86)\Nodist\bin\npm.exe 
install,cordova-plugin-whitelist@"1",--production,--save
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-06T10_50_02_190Z-debug.log
Checking for any plugins added to the project that have not been installed in 
windows platform
No differences found between plugins added to project and installed in windows 
platform. Continuing...
Generating platform-specific config.xml from defaults for windows at 
C:\Users\knaito\Documents\work\cordova\CB-14166\platforms\windows\config.xml
Merging project's config.xml into platform-specific windows config.xml
Merging and updating files from [www, platforms\windows\platform_www] to 
platforms\windows\www
  copy  platforms\windows\platform_www\cordova-js-src\confighelper.js 
platforms\windows\www\cordova-js-src\confighelper.js (updated file)
  copy  platforms\windows\platform_www\cordova-js-src\exec.js 
platforms\windows\www\cordova-js-src\exec.js (updated file)
  copy  platforms\windows\platform_www\cordova-js-src\platform.js 
platforms\windows\www\cordova-js-src\platform.js (updated file)
  copy  www\css\index.css platforms\windows\www\css\index.css (updated file)
  copy  www\index.html platforms\windows\www\index.html (updated file)
  copy  www\js\index.js platforms\windows\www\js\index.js (updated file)
This app does not have any icons or splash screens defined
Prepared windows project successfully
No scripts found for hook "pre_package".
No scripts found for hook "after_prepare".
Saving [email protected] into platforms.json
--save flag or autosave detected
Saving windows@~5.0.0 into config.xml file ...
adding windows to cordova.platforms array in package.json
No scripts found for hook "after_platform_add".
{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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to