cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-14166) Cordova on windows fails when adding plugin
Date Mon, 16 Jul 2018 16:33:00 GMT

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

ASF GitHub Bot commented on CB-14166:
-------------------------------------

AlmirKadric edited a comment on issue #622: CB-14166: (cli) Fixed issue when installing plugins
on windows
URL: https://github.com/apache/cordova-lib/pull/622#issuecomment-405306219
 
 
   ok so this problem is much larger than expected. I ran `npm test` locally using powershell
(without my changes applied) and I get the `Invalid tag name` error this PR fixes. So this
has been an issue and the tests are showing them, but for some reason they have been buried
(or not tested properly, perhaps tests not using node 10?). Along with a whole bunch of other
errors. Full set of errors below. I will retry the tests here on the latest master to see
if it is the same.
   
   <details>
   <summary>Full Error Set</summary>
   <p>
   
   ```
   Failures:
   1) end-to-end plugin dependency tests Test 029 : should fail if dependency already installed
is wrong version
     Message:
       Expected 'Failed to fetch plugin cordova-plugin-file@6.0.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 ""6.0.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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T05_57_58_565Z-debug.log'
to contain 'does not satisfy dependency plugin requirement'.
     Stack:
       Error: Expected 'Failed to fetch plugin cordova-plugin-file@6.0.1 via registry.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\fetch.spec.js:61:37
           at _rejected (D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:797:24)
           at D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:823:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:1035:31)
   
   2) end-to-end plugin dependency tests Test 030 : should pass if dependency already installed
is wrong version with --force
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-file@6.0.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 ""6.0.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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T05_58_13_614Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   3) end-to-end plugin dependency tests Test 031 : should pass if dependency already installed
is same major version (if specific version is specified)
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-file@2.1.0 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 ""2.1.0"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T05_58_27_751Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   4) end-to-end plugin dependency tests Test 032 : should handle two plugins with same dependent
plugin
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\plugin_dependency_test\hello3\plugins\Test2
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\plugin_dependency_test\hello3\plugins\Test2
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\fetch.spec.js:122:56
           at _rejected (D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:797:24)
           at D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:823:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:1035:31)
     Message:
       Expected 'Failed to fetch plugin cordova-plugin-file@2.0.0 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 ""2.0.0"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T05_58_44_513Z-debug.log'
to contain 'does not satisfy dependency plugin requirement'.
     Stack:
       Error: Expected 'Failed to fetch plugin cordova-plugin-file@2.0.0 via registry.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\fetch.spec.js:124:37
           at _rejected (D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:797:24)
           at D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:823:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\cordova-create\node_modules\q\q.js:1035:31)
   
   5) end-to-end plugin dependency tests Test 033 : should use a dev version of a dependent
plugin if it is already installed
     Message:
       CordovaError: Failed to fetch plugin https://github.com/apache/cordova-plugin-file
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 128
       npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init
--recursive
       npm ERR! fatal: 'submodule' appears to be a git command, but we were not
       npm ERR! able to execute it. Maybe git-submodule is broken?
       npm ERR!
   
       npm ERR! A complete log of this run can be found in:
       npm ERR!     C:\Users\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T05_59_01_960Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   6) tests platform/spec restore with --save Test#017 : test to make sure that platform url
is added and restored properly
     Message:
       CordovaError: Failed to fetch platform https://github.com/apache/cordova-browser
       Probably this is either a connection problem, or platform spec is incorrect.
       Check your connection and platform name/version/URL.
       Error: C:\Program Files (x86)\Nodist\bin\npm.exe: Command failed with exit code 1 Error
output:
       npm ERR! code 128
       npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init
--recursive
       npm ERR! fatal: 'submodule' appears to be a git command, but we were not
       npm ERR! able to execute it. Maybe git-submodule is broken?
       npm ERR!
   
       npm ERR! A complete log of this run can be found in:
       npm ERR!     C:\Users\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T05_59_43_514Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\cordova\platform\addHelper.js:312:25
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   7) tests platform/spec restore with --save Test#018 : test to make sure that plugin url
is added and restored properly
     Message:
       CordovaError: Failed to fetch plugin https://github.com/apache/cordova-plugin-splashscreen
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 128
       npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init
--recursive
       npm ERR! fatal: 'submodule' appears to be a git command, but we were not
       npm ERR! able to execute it. Maybe git-submodule is broken?
       npm ERR!
   
       npm ERR! A complete log of this run can be found in:
       npm ERR!     C:\Users\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T05_59_47_947Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   8) update config.xml to use the variable found in pkg.json Test#011 : if pkg.Json has 1
plugin and 1 variable, update config.xml to include these variables
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:751:75
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
   
   9) update pkg.json to include plugin and variable found in config.xml Test#012 : if pkg.Json
has 1 plugin and 2 variables, update config.xml to include these plugins/variables
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:836:77
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
   
   10) update pkg.json AND config.xml to include all plugins and merge unique variables Test#013
: update pkg.json AND config.xml to include all plugins and merge unique variables
     Message:
       Expected 0 to equal 1.
     Stack:
       Error: Expected 0 to equal 1.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:954:74
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected 1 to equal 0.
     Stack:
       Error: Expected 1 to equal 0.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:955:68
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\plugin_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\plugin_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:958:77
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\plugin_test_pkgjson\project\plugins\cordova-plugin-splashscreen
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\plugin_test_pkgjson\project\plugins\cordova-plugin-splashscreen
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:959:83
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
   
   11) update pkg.json AND config.xml to include all plugins/merge variables and check for
duplicates Test#014 : update pkg.json AND config.xml to include all plugins and merge variables
(no dupes)
     Message:
       Expected '^2.3.0' to equal '^2.4.1'.
     Stack:
       Error: Expected '^2.3.0' to equal '^2.4.1'.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1068:47
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected '~1.0.0' to equal '^1.0.1'.
     Stack:
       Error: Expected '~1.0.0' to equal '^1.0.1'.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1074:47
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected 0 to equal 2.
     Stack:
       Error: Expected 0 to equal 2.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1082:74
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected 1 to equal 0.
     Stack:
       Error: Expected 1 to equal 0.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1083:68
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected 2 to equal 1.
     Stack:
       Error: Expected 2 to equal 1.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1084:68
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected '^2.3.0' to equal '^2.4.1'.
     Stack:
       Error: Expected '^2.3.0' to equal '^2.4.1'.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1088:67
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected '~1.0.0' to equal '^1.0.1'.
     Stack:
       Error: Expected '~1.0.0' to equal '^1.0.1'.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1091:67
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1101:77
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-splashscreen
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-splashscreen
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1102:83
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-device
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-device
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1103:77
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
   
   12) update config.xml to include the plugin that is in pkg.json Test#015 : update config.xml
to include all plugins/variables from pkg.json
     Message:
       Expected '^2.3.0' to equal '^2.4.1'.
     Stack:
       Error: Expected '^2.3.0' to equal '^2.4.1'.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1184:71
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected '^2.3.0' to equal '^2.4.1'.
     Stack:
       Error: Expected '^2.3.0' to equal '^2.4.1'.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1189:47
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       Expected $.spec = '^2.3.0' to equal '^2.4.1'.
     Stack:
       Error: Expected $.spec = '^2.3.0' to equal '^2.4.1'.
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1193:39
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-camera
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1202:77
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
   
   13) platforms and plugins should be restored with config.xml even without a pkg.json Test#016
: platforms and plugins should be restored with config.xml even without a pkg.json
     Message:
       expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-device
to exist
     Stack:
       Error: expected C:\Users\almir\AppData\Local\Temp\e2e-test\platform_test_pkgjson\project\plugins\cordova-plugin-device
to exist
           at <Jasmine>
           at D:\Dump\cordova-lib\integration-tests\pkgJson-restore.spec.js:1335:77
           at _fulfilled (D:\Dump\cordova-lib\node_modules\q\q.js:854:54)
           at D:\Dump\cordova-lib\node_modules\q\q.js:883:30
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:816:13)
   
   14) plugin end-to-end Test#001 : should successfully add and remove a plugin with save
and correct spec
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-device@1.1.2 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.1.2"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_04_35_219Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   15) plugin end-to-end Test#002 : should NOT add a plugin to package.json if --save is not
used
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-geolocation@2.4.3 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 ""2.4.3"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_04_40_843Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   16) plugin end-to-end Test#023 : use pinned/lastest version if there is no platform/plugin
version passed in and no platform/plugin versions in pkg.json or config.xml
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-geolocation@2.4.3 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 ""2.4.3"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_05_14_149Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   17) During add, if pkg.json has a platform/plugin spec, use that one. Test#020 : During
add, if pkg.json has a spec, use that one.
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-splashscreen@^3.2.2 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 ""^3.2.2"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_07_06_872Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   18) During add, if config.xml has a platform/plugin spec and pkg.json does not, use config.
Test#021 : If config.xml has a spec (and none was specified and pkg.json does not have one),
use config.
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-splashscreen@~3.2.2 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 ""~3.2.2"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_07_23_807Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   19) During add, if add specifies a platform spec, use that one regardless of what is in
pkg.json or config.xml Test#022 : when adding with a specific platform version, always use
that one.
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-splashscreen@4.0.0 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 ""4.0.0"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_07_39_419Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   20) platform add plugin rm end-to-end Test 006 : should remove dependency when removing
parent plugin
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-media@5.0.2 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 ""5.0.2"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_08_08_547Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   21) plugin add and rm end-to-end --fetch Test 008 : should remove dependency when removing
parent plugin
     Message:
       CordovaError: Failed to fetch plugin cordova-plugin-media@5.0.2 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 ""5.0.2"": 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\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_08_52_212Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   
   22) plugin end-to-end Test 009 : should not check npm info when fetching from a Git repository
     Message:
       CordovaError: Failed to fetch plugin https://github.com/apache/cordova-plugin-device.git
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 128
       npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init
--recursive
       npm ERR! fatal: 'submodule' appears to be a git command, but we were not
       npm ERR! able to execute it. Maybe git-submodule is broken?
       npm ERR!
   
       npm ERR! A complete log of this run can be found in:
       npm ERR!     C:\Users\almir\AppData\Roaming\npm-cache\_logs\2018-07-16T06_09_54_210Z-debug.log
     Stack:
       error properties: undefined
           at <Jasmine>
           at D:\Dump\cordova-lib\src\plugman\fetch.js:173:37
           at _rejected (D:\Dump\cordova-lib\node_modules\q\q.js:864:24)
           at D:\Dump\cordova-lib\node_modules\q\q.js:890:30
           at Promise.when (D:\Dump\cordova-lib\node_modules\q\q.js:1142:31)
           at Promise.promise.promiseDispatch (D:\Dump\cordova-lib\node_modules\q\q.js:808:41)
           at D:\Dump\cordova-lib\node_modules\q\q.js:624:44
           at runSingle (D:\Dump\cordova-lib\node_modules\q\q.js:137:13)
           at flush (D:\Dump\cordova-lib\node_modules\q\q.js:125:13)
           at process._tickCallback (internal/process/next_tick.js:61:11)
   ```
   
   </p>
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message