[jira] [Comment Edited] (CB-13768) cordova-fetch is unable to install from url or file system using package.json

2018-06-13 Thread Raphael (JIRA)


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

Raphael edited comment on CB-13768 at 6/13/18 3:48 PM:
---

Resolved by [https://github.com/apache/cordova-fetch/pull/18]

You can test this using cordova@8.0.1-nightly.2018.6.13.f567c26f


was (Author: raphinesse):
Resolved by https://github.com/apache/cordova-fetch/pull/18

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-fetch
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



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



[jira] [Comment Edited] (CB-13768) cordova-fetch is unable to install from url or file system using package.json

2018-03-21 Thread Jon Rista (JIRA)

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

Jon Rista edited comment on CB-13768 at 3/21/18 9:46 PM:
-

I have experienced this issue as well. This is also for a package we do not 
directly depend on, but which appears to be a dependency of one of our direct 
dependencies (so we cannot remove it, and we have no control over where it 
comes from): 
{code:java}
→ cordova plugin add 
git+https://github.com/guyromb/Cordova-open-native-settings.git
Error: Failed to fetch plugin 
git+https://github.com/guyromb/Cordova-open-native-settings.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 {code}
This has left us dead in the water for our android builds. 


was (Author: jrista):
I have experienced this issue as well. This is also for a package we do not 
directly depend on, but which appears to be a dependency of one of our direct 
dependencies (so we cannot remove it, and we have no control over where it 
comes from):

 

```

→ cordova plugin add 
git+[https://github.com/guyromb/Cordova-open-native-settings.git]
 Error: Failed to fetch plugin 
git+[https://github.com/guyromb/Cordova-open-native-settings.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

```

 

This has left us dead in the water for our android builds. 

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



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



[jira] [Comment Edited] (CB-13768) cordova-fetch is unable to install from url or file system using package.json

2018-03-21 Thread Jon Rista (JIRA)

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

Jon Rista edited comment on CB-13768 at 3/21/18 9:46 PM:
-

I have experienced this issue as well. This is also for a package we do not 
directly depend on, but which appears to be a dependency of one of our direct 
dependencies (so we cannot remove it, and we have no control over where it 
comes from):

 

```

→ cordova plugin add 
git+[https://github.com/guyromb/Cordova-open-native-settings.git]
 Error: Failed to fetch plugin 
git+[https://github.com/guyromb/Cordova-open-native-settings.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

```

 

This has left us dead in the water for our android builds. 


was (Author: jrista):
I have experienced this issue as well. This is also for a package we do not 
directly depend on, but which appears to be a dependency of one of our direct 
dependencies (so we cannot remove it, and we have no control over where it 
comes from):

 

```→ cordova plugin add 
git+https://github.com/guyromb/Cordova-open-native-settings.git
Error: Failed to fetch plugin 
git+https://github.com/guyromb/Cordova-open-native-settings.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```

 

This has left us dead in the water for our android builds. 

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



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