[ https://issues.apache.org/jira/browse/CB-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545575#comment-16545575 ]
ASF GitHub Bot commented on CB-14166: ------------------------------------- AlmirKadric commented on issue #622: CB-14166: (cli) Fixed issue when installing plugins on windows URL: https://github.com/apache/cordova-lib/pull/622#issuecomment-405334374 Final test completed, these are the errors that appear when I tested latest master with my patch applied <details> <summary>Full Error Set</summary> <p> ``` 1) 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-16T17_05_08_799Z-debug.log Stack: error properties: undefined at <Jasmine> at D:\Dump\cordova-lib\src\plugman\fetch.js:147: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) 2) 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-16T17_05_52_851Z-debug.log Stack: error properties: undefined at <Jasmine> at D:\Dump\cordova-lib\src\cordova\platform\addHelper.js:305: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) 3) 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-16T17_05_57_078Z-debug.log Stack: error properties: undefined at <Jasmine> at D:\Dump\cordova-lib\src\plugman\fetch.js:147: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) 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-16T17_18_04_469Z-debug.log Stack: error properties: undefined at <Jasmine> at D:\Dump\cordova-lib\src\plugman\fetch.js:147: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: us...@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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org