You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrey Caramba (JIRA)" <ji...@apache.org> on 2018/03/23 14:13:00 UTC

[jira] [Commented] (CB-13507) git+https or git+ssh fails when trying to install

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

Andrey Caramba commented on CB-13507:
-------------------------------------

I have the same issue with cordova@7 and cordova@8

OS: Ubuntu 16.04.4 and Mac OS X High Sierra

node: 8.9.1 and 8.10.0

npm: 5.5.1 and 5.6.0

When I'm trying to add plugins with -d key IĀ get next log
{code:java}
Calling plugman.fetch on plugin "git+ssh://git@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git"
Running command: npm install git+ssh://git@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git --production --no-save
Command finished with error code 0: npm install,git+ssh://git@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git,--production,--no-save
(node:58588) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch plugin git+ssh://git@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
at /Users/andrey/node_modules/cordova-lib/src/plugman/fetch.js:173:37
at _rejected (/Users/andrey/node_modules/q/q.js:864:24)
at /Users/andrey/node_modules/q/q.js:890:30
at Promise.when (/Users/andrey/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch (/Users/andrey/node_modules/q/q.js:808:41)
at /Users/andrey/node_modules/q/q.js:624:44
at runSingle (/Users/andrey/node_modules/q/q.js:137:13)
at flush (/Users/andrey/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
(node:58588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:58588) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
{code}

> git+https or git+ssh fails when trying to install
> -------------------------------------------------
>
>                 Key: CB-13507
>                 URL: https://issues.apache.org/jira/browse/CB-13507
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: AllPlatforms
>    Affects Versions: 7.0.2
>         Environment: I am selecting 7.0.2 since it's the closest but I am running cordova 7.1.0
> OS: Mac OS X Sierra.
> Although I don't think it has anything to do with cordova-ios and cordova-android, my platform versions are: 
> - android 6.3.0
> - ios 4.5.2
>            Reporter: Pablo Caselas
>            Priority: Major
>             Fix For: 7.0.2
>
>
> I start with adding plugin dependencies with https://...... on package.json (no plugin references on config.xml) and no platforms or plugins installed then I run "cordova platform ios".
> It installs the plugins without any problem, but changes config.xml and package.json plugin references from https to git+https, and ssh to git+ssh.
> Failed to restore plugin "cordova-plugin-document-viewer" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin git+https://github.com/kas84/cordova-plugin-document-viewer.git via registry



--
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