[
https://issues.apache.org/jira/browse/CB-13588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257136#comment-16257136
]
Jan Piotrowski (Sujan) commented on CB-13588:
---------------------------------------------
Cordova doesn't care if the content is by your definition "wrong" or not, that
is something you can talk about to the npm maintainers.
Cordova can only see if there is a proper problem when a situation is described
in such a manner that we can reproduce it. Of course there are a million ways
to misconfigure or abuse npm so that software installed by it won't work.
Which is why I am asking for documentation on `--prefix`, what exactly it does
and how it is supposed to work. The best seems to be
https://docs.npmjs.com/files/folders#more-information though :/
Same for the `npmrc` stuff - if you can show the commands for and motivation of
changes in that file, Cordova can decide if this is something that should be
supported or not and make this a bug or an edge case.
> cordova-create fails to copy template on Windows when nodejs global
> node_modules are installed in a different directory than the default one
> (AppData\Roaming)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-13588
> URL: https://issues.apache.org/jira/browse/CB-13588
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-create
> Reporter: Lukas Plachy
> Attachments: correct__g_install_fail_npmrc.png,
> correct__g_install_fail_using_prefix.png
>
>
> If the npm is run without the wrong(*) content in npmrc, then as you may see,
> 'cordova create' fails, 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 (CB-13587), 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
> is manifested in all three (**) solutions presented here, in two of them even
> despite the required '-g' install.
> (*) incorrect handling of npmrc file containing the string
> 'prefix=${APPDATA}\npm' in contrast to the expected behvaior as described in
> https://docs.npmjs.com/cli/npm#directories
> (**) The third one is to install the module into the global node_modules in
> the nodejs installation directory in the same manner as a local install (eg.
> cd into my_nodejs_install_dir and doing an 'npm install cordova') which
> however due to a higher reason has been agreed as an unsupported method, for
> details see CB-13587)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]