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

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

And here is my verbose output with `-d`:

{code}
C:\Projects\experiments\foo
λ cordova create CB14166
Creating a new cordova project.

C:\Projects\experiments\foo
λ cd CB14166\

C:\Projects\experiments\foo\CB14166  (helloworld@1.0.0)
λ cordova platform add windows@5.0.0 -d
No scripts found for hook "before_platform_add".
Using cordova-fetch for cordova-windows@5.0.0
saving
Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install 
cordova-windows@5.0.0 --production --save""
Command finished with error code 0: cmd /s /c ""C:\Program 
Files\nodejs\npm.cmd" install cordova-windows@5.0.0 --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:\Projects\experiments\foo\CB14166\platforms\windows
Copying cordova-js sources to platform_www
Copying node_modules to C:\Projects\experiments\foo\CB14166\platforms\windows
Updating manifest files with project configuration.
Windows project created with cordova-windows@5.0.0
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: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install 
cordova-plugin-whitelist@"1" --production --save""
Command finished with error code 0: cmd /s /c ""C:\Program 
Files\nodejs\npm.cmd" install cordova-plugin-whitelist@"1" --production --save"
Copying plugin 
"C:\Projects\experiments\foo\CB14166\node_modules\cordova-plugin-whitelist" => 
"C:\Projects\experiments\foo\CB14166\plugins\cordova-plugin-whitelist" Calling 
plugman.install on plugin 
"C:\Projects\experiments\foo\CB14166\plugins\cordova-plugin-whitelist" for 
platform "windows
Installing "cordova-plugin-whitelist" for windows
Running command: cmd "/s /c 
"C:\Projects\experiments\foo\CB14166\platforms\windows\cordova\version.bat""
Command finished with error code 0: cmd /s /c 
"C:\Projects\experiments\foo\CB14166\platforms\windows\cordova\version.bat"
Finding scripts for "before_plugin_install" hook from plugin 
cordova-plugin-whitelist on windows platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-whitelist" on windows.
Beginning processing of action stack for windows project...
Action stack processing complete.
Install complete for cordova-plugin-whitelist on windows.
Finding scripts for "after_plugin_install" hook from plugin 
cordova-plugin-whitelist on windows platform only.
No scripts found for hook "after_plugin_install".
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
No scripts found for hook "after_plugin_add".
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:\Projects\experiments\foo\CB14166\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  platforms\windows\platform_www\cordova_plugins.js 
platforms\windows\www\cordova_plugins.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 windows@5.0.0 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to