cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphael (JIRA)" <>
Subject [jira] [Updated] (CB-14102) Support setting custom npm binary for cordova-fetch
Date Mon, 25 Jun 2018 14:54:00 GMT


Raphael updated CB-14102:
    Summary: Support setting custom npm binary for cordova-fetch  (was: "cordova plugin add"
removes other plugins installed from Github )

> Support setting custom npm binary for cordova-fetch
> ---------------------------------------------------
>                 Key: CB-14102
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: cordova-fetch
>    Affects Versions: 8.0.0
>            Reporter: Ken Naito
>            Priority: Minor
>             Fix For: 8.0.0
> The cordova platform/plugin add commands use cordova-fetch to get the relevant files.
It does this by using npm.
> However, npm@5.6.x has an issue when installing modules from Github.
> npm modules installed from a Github URL will be removed after installing other npm modules.
> The issue is on npm’s Github:
> For example, using node v9.5.0, npm v5.6.0 and cordova 8.0, run
> $ cordova plugin add
> This adds helloworldplugin into the node_modules directory, as shown below:
> $ ls node_modules/
> fs-extra        helloworldplugin    jsonfile        universalify
> graceful-fs        install            npm
> If we add further plugins like so:
> $ cordova plugin add cordova-plugin-camera
> The previous modules in node_modules directory disappear.
> $ ls node_modules/
> cordova-plugin-camera
> This is fixed in npm@5.7.1, as mentioned in the issue link above.
> It is possible that the user cannot update their global npm version due to some other
dependencies. I suggest that we add a way for the user to override the npm executable which
is used by Cordova. For example, we could add an environment variable as below, which would
be used instead of the global npm:
> CORDOVA_NPM=/home/user/bin/npm

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message