cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <...@git.apache.org>
Subject [GitHub] cordova-cli pull request: CB-10062 Error: EACCES: permission denie...
Date Mon, 04 Apr 2016 06:26:43 GMT
Github user daserge commented on a diff in the pull request:

    https://github.com/apache/cordova-cli/pull/242#discussion_r58332189
  
    --- Diff: src/cli.js ---
    @@ -60,13 +60,23 @@ function init() {
     }
     
     function checkForUpdates() {
    -    // Checks for available update and returns an instance
    -    var notifier = updateNotifier({
    -        pkg: pkg
    -    });
    +    try {
    +        // Checks for available update and returns an instance
    +        var notifier = updateNotifier({
    +            pkg: pkg
    +        });
     
    -    // Notify using the built-in convenience method
    -    notifier.notify();
    +        // Notify using the built-in convenience method
    +        notifier.notify();
    +    } catch (e) {
    +        // https://issues.apache.org/jira/browse/CB-10062
    +        if (e && e.message && /EACCES/.test(e.message)) {
    +            console.log('Update notifier was not able to access the config file.\n' +
    --- End diff --
    
    `checkForUpdates` is called before we subscribe for events.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message