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

Lukas Plachy commented on CB-13536:
-----------------------------------

Im very sorry, but I know fairly well how the -g is supposed to work in this 
matter, in this case the culprit is the incorrect handling of npmrc file 
containing the string 'prefix=${APPDATA}\npm'. Nevertheless, if this is 
deleted, than the npm is able to work with paths as expected. But this problem 
itslef is no concern of yours, Ive allready started an issue in npm 
here:https://github.com/npm/npm/issues/19188 

So back to cordova:
If the npm is run without the wrong content in npmrc, then as you may see, 
cordova create fails again in the very same way, even when the npm is allready 
able to work as expected. [^correct__g_install_fail_npmrc.png]
If you are not comfort with the "local install" override, or the npmrc content 
deletition, then you might find the command '*npm install -g cordova --prefix 
D:\mynodejsdirectory\*' more compliant with correct usage. And as you may see 
([^correct__g_install_fail_using_prefix.png]), the error which this ticket is 
about, remains in place in all three soltuions I have presented you here, 
despite the '-g' install. So I still have to insist on the fact, that there is 
someting wrong in Cordova code.
Maybe, but Im not very happy do be forced to dig that deep, since these are 
just guesses without deeper understanding, some issue in the cordova file 
https://github.com/apache/cordova-cli/blob/e2e42fd10bbcda65db27be4d3e5e8c998d1beaa3/src/cli.js#L522
 when resolving the ~ or much deeper, in the 'cordova-create' library 
https://github.com/apache/cordova-create/blob/53d5894c849193073e65727033e27c8d2e428ac8/index.js#L35
  ? 

And please let me make one more note: While one may deeply appreciate the 
effort of yours in the work on these packages or solving the issues, Im not 
convinced that such abrupt closing of an issue as you did in your previous post 
is serving you and the cordova right. Instead of analysing the problem and 
perhaps making at least one primitive look into the code which you should know 
way better then I, you are trying 'to learn an eagel fly' by trying to convince 
me that I just misunderstood the '-g' argument. And I certainly cant stand to 
that.

> cordova being called from "quasar wrap" not working - cordova-realted error 
> when not installed in default directory: Could not install from 
> (path_of_nodejs_modules) as it does not contain a package.json file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-13536
>                 URL: https://issues.apache.org/jira/browse/CB-13536
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-app-hello-world, cordova-cli
>            Reporter: Lukas Plachy
>         Attachments: 2017-11-03T12_42_43_016Z-debug_anonymized.log, 
> 2017-11-14T14_08_29_042Z-debug.log, cordova_create_cordova.png, 
> cordova_create_direct_MSI_install_std_dirs.png, cordova_create_on_empty.png, 
> cordova_create_over_nvm_std_dirs.png, cordova_wrap_fail.png, 
> correct__g_install_fail_npmrc.png, correct__g_install_fail_using_prefix.png, 
> nvm_cordova_create.png, nvm_install.png
>
>
> Hi, anybody an idea, whats wrong here (see attached image), before I'll have 
> to make a deepdive into the sources? Such error does not help when doing 
> first hands-on!
> Note: has been reported to and rejected by quasar as not quasar-related.
> Thanks
> [^cordova_wrap_fail.png]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to