You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Wojciech Trocki (JIRA)" <ji...@apache.org> on 2018/05/13 12:48:00 UTC
[jira] [Comment Edited] (CB-13997) npm should always be used with
NO_UPDATE_NOTIFIER setted
[ https://issues.apache.org/jira/browse/CB-13997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16473472#comment-16473472 ]
Wojciech Trocki edited comment on CB-13997 at 5/13/18 12:47 PM:
----------------------------------------------------------------
This is already supported. See https://cordova.apache.org/docs/en/latest/reference/cordova-cli/#common-options
`--no-update-notifier`
However I found that there are still cases where cordova executes NPM without including this flag:
https://github.com/apache/cordova-fetch/blob/2932d1890f55c449f20aeba87abb30af266bc8d4/index.js#L257
I'm not sure what will be the suggested aproach from cordova team.
was (Author: wtrocki):
This is already supported. See https://cordova.apache.org/docs/en/latest/reference/cordova-cli/#common-options
`--no-update-notifier`
However I found that there is still one case where cordova executes NPM without this flag:
https://github.com/apache/cordova-fetch/blob/2932d1890f55c449f20aeba87abb30af266bc8d4/index.js#L257
> npm should always be used with NO_UPDATE_NOTIFIER setted
> --------------------------------------------------------
>
> Key: CB-13997
> URL: https://issues.apache.org/jira/browse/CB-13997
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-lib
> Reporter: Nicolas HENRY
> Priority: Minor
>
> Since cordova-lib is using npm commands, when I am behind a corporate proxy npm is trying to check if npm has new versions available and get stuck for some time each time npm command is spawned.
> As a workaround, I set NO_UPDATE_NOTIFIER environment variable manually to disable the check done by the "update-notifier" module which is used by npm.
> I think that cordova-lib should set this variable itself when it spawn npm commands since this check is probably unnecessary.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org