mbilker / cypher

:closed_lock_with_key: N1 PGP package
GNU General Public License v3.0
130 stars 12 forks source link

Error: Running apm #13

Closed bbabel closed 8 years ago

bbabel commented 8 years ago

I get this error when installing:

Error: Running apm install failed to install package dependencies.

Although I can see the plugin installed. I don't know what to do next or how to avoid the error.

mbilker commented 8 years ago

Do you have more output for me? Do you have git installed?

I cannot fix this issue if I do not know which dependency is failing.

bbabel commented 8 years ago

I'm sorry. I don't know how to find the output for the install but this is the error log in the Plugin Specs:

index.js:25 Error: Cannot find module 'libkeybase'
    at Module._resolveFilename (module.js:338:15)
    at Function.Module._resolveFilename (/usr/share/nylas/resources/app.asar/src/module-cache.js:373:52)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/babel/.nylas/packages/cypher-master/lib/keybase/store/keybase-store.js:4:24)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:204:21)
    at Module.load (/usr/share/nylas/resources/app.asar/node_modules/coffee-react/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/babel/.nylas/packages/cypher-master/lib/settings/keybase-login-section.js:5:62)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:204:21)
    at Module.load (/usr/share/nylas/resources/app.asar/node_modules/coffee-react/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/babel/.nylas/packages/cypher-master/lib/settings/preferences-component.js:3:38)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:204:21)
    at Module.load (/usr/share/nylas/resources/app.asar/node_modules/coffee-react/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/babel/.nylas/packages/cypher-master/lib/main.js:3:89)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:204:21)
    at Module.load (/usr/share/nylas/resources/app.asar/node_modules/coffee-react/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/babel/.nylas/packages/cypher-master/spec/main-spec.js:3:89)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:204:21)
    at Module.load (/usr/share/nylas/resources/app.asar/node_modules/coffee-react/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at requireSpecs (/usr/share/nylas/resources/app.asar/spec/spec-suite.coffee:25:9)
    at Object.<anonymous> (/usr/share/nylas/resources/app.asar/spec/spec-suite.coffee:95:5)
    at Object.<anonymous> (/usr/share/nylas/resources/app.asar/spec/spec-suite.coffee:101:4)
    at Module._compile (module.js:425:26)
    at Object.loadFile (/usr/share/nylas/resources/app.asar/node_modules/coffee-react/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
    at Module.load (/usr/share/nylas/resources/app.asar/node_modules/coffee-react/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at module.exports.runSpecSuite (/usr/share/nylas/resources/app.asar/spec/jasmine-helper.coffee:46:3)
    at Object.<anonymous> (/usr/share/nylas/resources/app.asar/spec/spec-bootstrap.coffee:34:3)
    at Object.<anonymous> (/usr/share/nylas/resources/app.asar/spec/spec-bootstrap.coffee:5:1)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value (/usr/share/nylas/resources/app.asar/src/compile-cache.js:204:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at setupWindow (file:///usr/share/nylas/resources/app.asar/static/index.js:67:3)
    at window.onload (file:///usr/share/nylas/resources/app.asar/static/index.js:106:5)handleSetupError @ index.js:25

Hope this helps.

mbilker commented 8 years ago

Do you have git installed? Two dependencies require git.

bbabel commented 8 years ago

Yes, I'm using git 2.8.0-1 under Arch Linux.

mbilker commented 8 years ago

Hmm. It failed to install some dependency.

bbabel commented 8 years ago

Is there a way to install dependencies in a separate way?

mbilker commented 8 years ago

Run npm install --production in the plugin directory. I just pushed a change that uses a newer libkeybase version that hopefully fixes that issue.

mbilker commented 8 years ago

Correction. Run npm install --production. I edited my previous post, but that doesn't send a new email.

bbabel commented 8 years ago

I think that solved the install problem, although I got this warning:

npm WARN eslint-config-airbnb@6.2.0 requires a peer of eslint@^2.4.0 but none was installed

Now I can see this question when I click on a encrypted mail: "Which PGP key should be use for decryption of this message?" It doesn't show my private key but maybe that's something I have to configure first. If that's an issue I'll open another ticket. I think this one can be closed now.

Thanks.

mbilker commented 8 years ago

Yes open another ticket. Currently, Linux and OS X default to GPG. On Arch Linux, install gnupg. Then, create a key in the command line following https://wiki.archlinux.org/index.php/GnuPG#Create_key_pair.

mbilker commented 8 years ago

Also about the npm WARN I noticed that myself and fixed it before I saw your post.