{"action":"created","issue":{"url":"https://api.github.com/repos/skandasoft/preview-plus/issues/11","labels_url":"https://api.github.com/repos/skandasoft/preview-plus/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/skandasoft/preview-plus/issues/11/comments","events_url":"https://api.github.com/repos/skandasoft/preview-plus/issues/11/events","html_url":"https://github.com/skandasoft/preview-plus/issues/11","id":59034222,"number":11,"title":"Package fails to load depending on installation","user":{"login":"LaurentTreguier","id":7602755,"avatar_url":"https://avatars.githubusercontent.com/u/7602755?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentTreguier","html_url":"https://github.com/LaurentTreguier","followers_url":"https://api.github.com/users/LaurentTreguier/followers","following_url":"https://api.github.com/users/LaurentTreguier/following{/other_user}","gists_url":"https://api.github.com/users/LaurentTreguier/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentTreguier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentTreguier/subscriptions","organizations_url":"https://api.github.com/users/LaurentTreguier/orgs","repos_url":"https://api.github.com/users/LaurentTreguier/repos","events_url":"https://api.github.com/users/LaurentTreguier/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentTreguier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-02-26T08:00:22Z","updated_at":"2015-03-18T10:30:09Z","closed_at":null,"body":"I recently tried to install 'preview-plus' package for Atom. The package activates and works successfully when running `git clone https://github.com/skandasoft/preview-plus` and `apm install`. But when installing it through the settings panel of Atom, or using `apm install preview-plus`, the package can't be loaded and I find the following warnings in the console:\r\n```\r\nFailed to load package named 'preview-plus' Error: Cannot find module 'event-kit'\r\n  at Module._resolveFilename (module.js:351:15)\r\n  at Function.Module._resolveFilename (/usr/share/atom/resources/app/src/module-cache.js:383:52)\r\n  at Function.Module._load (module.js:293:25)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/watch.coffee:2:13)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/watch.coffee:1:1)\r\n  at Module._compile (module.js:475:26)\r\n  at Object.requireCoffeeScript (/usr/share/atom/resources/app/node_modules/coffee-cash/lib/coffee-cash.js:67:19)\r\n  at Module.load (module.js:370:32)\r\n  at Function.Module._load (module.js:325:12)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/preview-plus.coffee:10:9)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/preview-plus.coffee:1:1)\r\n  at Module._compile (module.js:475:26)\r\n  at Object.requireCoffeeScript (/usr/share/atom/resources/app/node_modules/coffee-cash/lib/coffee-cash.js:67:19)\r\n  at Module.load (module.js:370:32)\r\n  at Function.Module._load (module.js:325:12)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at Package.module.exports.Package.requireMainModule (/usr/share/atom/resources/app/src/package.js:653:34)\r\n  at /usr/share/atom/resources/app/src/package.js:190:28\r\n  at Package.module.exports.Package.measure (/usr/share/atom/resources/app/src/package.js:167:15)\r\n  at Package.module.exports.Package.load (/usr/share/atom/resources/app/src/package.js:181:12)\r\n  at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/atom/resources/app/src/package-manager.js:378:16)\r\n  at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/atom/resources/app/src/package-manager.js:355:14)\r\n  at Atom.module.exports.Atom.startEditorWindow (/usr/share/atom/resources/app/src/atom.js:617:21)\r\n  at Object.<anonymous> (/usr/share/atom/resources/app/src/window-bootstrap.js:12:8)\r\n  at Object.<anonymous> (/usr/share/atom/resources/app/src/window-bootstrap.js:23:4)\r\n  at Module._compile (module.js:475:26)\r\n  at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/babel.js:162:21)\r\n  at Module.load (module.js:370:32)\r\n  at Function.Module._load (module.js:325:12)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at window.onload (file:///usr/share/atom/resources/app/static/index.js:52:25)\r\n\r\n/usr/share/atom/resources/app/src/package.js:243 Failed to activate package named 'preview-plus' Error: Cannot find module 'event-kit'\r\n  at Module._resolveFilename (module.js:351:15)\r\n  at Function.Module._resolveFilename (/usr/share/atom/resources/app/src/module-cache.js:383:52)\r\n  at Function.Module._load (module.js:293:25)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/watch.coffee:2:13)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/watch.coffee:1:1)\r\n  at Module._compile (module.js:475:26)\r\n  at Object.requireCoffeeScript (/usr/share/atom/resources/app/node_modules/coffee-cash/lib/coffee-cash.js:67:19)\r\n  at Module.load (module.js:370:32)\r\n  at Function.Module._load (module.js:325:12)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/preview-plus.coffee:10:9)\r\n  at Object.<anonymous> (/home/laurent/.atom/packages/preview-plus/lib/preview-plus.coffee:1:1)\r\n  at Module._compile (module.js:475:26)\r\n  at Object.requireCoffeeScript (/usr/share/atom/resources/app/node_modules/coffee-cash/lib/coffee-cash.js:67:19)\r\n  at Module.load (module.js:370:32)\r\n  at Function.Module._load (module.js:325:12)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at Package.module.exports.Package.requireMainModule (/usr/share/atom/resources/app/src/package.js:653:34)\r\n  at Package.module.exports.Package.activateConfig (/usr/share/atom/resources/app/src/package.js:253:12)\r\n  at Package.module.exports.Package.activateNow (/usr/share/atom/resources/app/src/package.js:232:14)\r\n  at /usr/share/atom/resources/app/src/package.js:221:28\r\n  at Package.module.exports.Package.measure (/usr/share/atom/resources/app/src/package.js:167:15)\r\n  at Package.module.exports.Package.activate (/usr/share/atom/resources/app/src/package.js:215:14)\r\n  at PackageManager.module.exports.PackageManager.activatePackage (/usr/share/atom/resources/app/src/package-manager.js:464:21)\r\n  at /usr/share/atom/resources/app/src/package-manager.js:445:29\r\n  at Config.module.exports.Config.transact (/usr/share/atom/resources/app/src/config.js:350:16)\r\n  at PackageManager.module.exports.PackageManager.activatePackages (/usr/share/atom/resources/app/src/package-manager.js:439:19)\r\n  at PackageManager.module.exports.PackageManager.activate (/usr/share/atom/resources/app/src/package-manager.js:422:46)\r\n  at Atom.module.exports.Atom.startEditorWindow (/usr/share/atom/resources/app/src/atom.js:620:21)\r\n  at Object.<anonymous> (/usr/share/atom/resources/app/src/window-bootstrap.js:12:8)\r\n  at Object.<anonymous> (/usr/share/atom/resources/app/src/window-bootstrap.js:23:4)\r\n  at Module._compile (module.js:475:26)\r\n  at Object.loadFile [as .js] (/usr/share/atom/resources/app/src/babel.js:162:21)\r\n  at Module.load (module.js:370:32)\r\n  at Function.Module._load (module.js:325:12)\r\n  at Module.require (module.js:380:17)\r\n  at require (module.js:399:17)\r\n  at window.onload (file:///usr/share/atom/resources/app/static/index.js:52:25)\r\n```\r\nWhen looking at package.json in the package source code, the `event-kit` dependency seems to have disappeared from the `dependencies` list, even though it should be there... I've never had this problem until now; is it a problem with this package or with apm automated install ? Or with me, but I think I've done nothing wrong installing the package..."},"comment":{"url":"https://api.github.com/repos/skandasoft/preview-plus/issues/comments/82885094","html_url":"https://github.com/skandasoft/preview-plus/issues/11#issuecomment-82885094","issue_url":"https://api.github.com/repos/skandasoft/preview-plus/issues/11","id":82885094,"user":{"login":"AnbuKakashi","id":10999416,"avatar_url":"https://avatars.githubusercontent.com/u/10999416?v=3","gravatar_id":"","url":"https://api.github.com/users/AnbuKakashi","html_url":"https://github.com/AnbuKakashi","followers_url":"https://api.github.com/users/AnbuKakashi/followers","following_url":"https://api.github.com/users/AnbuKakashi/following{/other_user}","gists_url":"https://api.github.com/users/AnbuKakashi/gists{/gist_id}","starred_url":"https://api.github.com/users/AnbuKakashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnbuKakashi/subscriptions","organizations_url":"https://api.github.com/users/AnbuKakashi/orgs","repos_url":"https://api.github.com/users/AnbuKakashi/repos","events_url":"https://api.github.com/users/AnbuKakashi/events{/privacy}","received_events_url":"https://api.github.com/users/AnbuKakashi/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T10:30:09Z","updated_at":"2015-03-18T10:30:09Z","body":"that is also working which is absolutely great :D \r\n\r\nthank you both for putting  up with me and helping me resolve this, sorry for spamming the comments"}}