[
https://issues.apache.org/jira/browse/CB-6621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988164#comment-13988164
]
Martin Gonzalez commented on CB-6621:
-------------------------------------
The problem it happens specifically at url.parse
(https://github.com/apache/cordova-cli/blob/master/src/config.js#L75),
json.lib[platform].uri it's well set before url.parse.
The problem is that url.parse.href value escapes all the backslashes.
It's possible return just the uri path ---> json.lib[platform].uri, instead of
do url.parse
This behavior it only happens using Nodejs v11.1x, under v10.27 it works pretty
fine.
Any thoughts or suggestions?
> [CLI][NodeJS 11.1x] config.js returns path for local library escaping all
> backslashes
> -------------------------------------------------------------------------------------
>
> Key: CB-6621
> URL: https://issues.apache.org/jira/browse/CB-6621
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.4.0
> Environment: Windows 7, Windows 8.1
> Reporter: Martin Gonzalez
> Assignee: Martin Gonzalez
> Labels: cordova-cli
> Fix For: 3.5.0
>
>
> Using local libraries as cordova-android, blackberry10, wp8 with nodejs 11.1x
> it's making fail the requirements check.
> In fact, the config.js file, it's the one that verify if custom libraries or
> local libraries are specified in the project.
> Tracking down the problem, I've found out that config.js, which returns the
> library path, it's messing the path and returning this:
> c:%5CUsers%5CAdministrator%5CDesktop%5CTestWP%5Ccordova-wp8
> instead of:
> c:\Users\Administrator\Desktop\TestWP\cordova-wp8
--
This message was sent by Atlassian JIRA
(v6.2#6252)