byteclubfr / node-sync-files

Synchronize files or folders locally, with a watch option
MIT License
43 stars 15 forks source link

TypeError: Cannot read property 'update' of undefined #5

Open AndyOGo opened 8 years ago

AndyOGo commented 8 years ago

The configstore randomly throws this error.

  .../node_modules/configstore/index.js:86
    return this.all[key];
                   ^

 TypeError: Cannot read property 'update' of undefined
     at Object.Configstore.get (.../node_modules/configstore/index.js:86:17)
     at UpdateNotifier.check (.../node_modules/update-notifier/index.js:51:28)
     at module.exports (.../node_modules/update-notifier/index.js:127:17)
     at Object.<anonymous(.../node_modules/sync-files/bin/sync-files.js:121:3)
     at Module._compile (module.js:413:34)
     at Object.Module._extensions..js (module.js:422:10)
     at Module.load (module.js:357:32)
     at Function.Module._load (module.js:314:12)
     at Function.Module.runMain (module.js:447:10)
     at startup (node.js:146:18)
AndyOGo commented 8 years ago

@naholyr Hello, do you have any chance to look into this one?

AndyOGo commented 8 years ago

This bug can be "disabled" by setting --no-notify-update

wamoyo commented 4 years ago

@AndyOGo Any luck? I've had this issue for years. Perhaps it's from a different module? 'update-notifier' perhaps? https://github.com/yeoman/update-notifier/issues

Can't seem to track it down.

AndyOGo commented 4 years ago

@wamoyo Yes, it's an update-notifier issue.