blockades / poc_keybase_sign

A proof of concept for signing messages using keybase API
0 stars 0 forks source link

Failing README instructions #2

Closed dan-mi-sun closed 6 years ago

dan-mi-sun commented 6 years ago

Description

When running the software I get an error.

System

I am running:

$ uname -a Linux host 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux

$ lsb_release -cs jessie

Steps to reproduce

Observed behaviour

We get an error message saying :

 $ cat /home/user/.npm/_logs/2017-11-27T08_51_00_308Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@5.5.1
3 info using node@v8.9.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle keybase_key_sign_poc@1.0.0~prestart: keybase_key_sign_poc@1.0.0
6 info lifecycle keybase_key_sign_poc@1.0.0~start: keybase_key_sign_poc@1.0.0
7 verbose lifecycle keybase_key_sign_poc@1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle keybase_key_sign_poc@1.0.0~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/user/Projects/poc_keybase_sign/node_modules/.bin:/home/user/.rbenv/shims:/home/user/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
9 verbose lifecycle keybase_key_sign_poc@1.0.0~start: CWD: /home/user/Projects/poc_keybase_sign
10 silly lifecycle keybase_key_sign_poc@1.0.0~start: Args: [ '-c', 'node index.js' ]
11 silly lifecycle keybase_key_sign_poc@1.0.0~start: Returned: code: 1  signal: null
12 info lifecycle keybase_key_sign_poc@1.0.0~start: Failed to exec start script
13 verbose stack Error: keybase_key_sign_poc@1.0.0 start: `node index.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid keybase_key_sign_poc@1.0.0
15 verbose cwd /home/user/Projects/poc_keybase_sign
16 verbose Linux 3.16.0-4-amd64
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v8.9.1
19 verbose npm  v5.5.1
20 error code ELIFECYCLE
21 error errno 1
22 error keybase_key_sign_poc@1.0.0 start: `node index.js`
22 error Exit status 1
23 error Failed at the keybase_key_sign_poc@1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Expected behaviour:

I'm not sure what should have happened instead... perhaps electron to launch?

sadeden commented 6 years ago

@dan-mi-sun Can you try sudo npm install -g electron ?

dan-mi-sun commented 6 years ago

Argh. I do think it is a privilidges issue as I get a similar set of errors as here:

https://github.com/electron/electron/issues/10891

m4gpi commented 6 years ago

Likewise I'm getting a similar error on Ubuntu GNOME xenial

[9:51:46] kyphae:poc_keybase_sign git:(master*) $ sudo npm install -g electron
/usr/bin/electron -> /usr/lib/node_modules/electron/cli.js

> electron@1.7.9 postinstall /usr/lib/node_modules/electron
> node install.js

/usr/lib/node_modules/electron/install.js:48
  throw err
  ^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron/dist'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.7.9 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@1.7.9 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kyphae/.npm/_logs/2017-11-27T09_51_55_878Z-debug.log
sadeden commented 6 years ago

Ok for now we can launch the PoC with ./node_modules/.bin/electron . I will update the npm start behaviour and README.

sadeden commented 6 years ago

Ok you can now start the app with npm start no need for a global electron install. Sorry for this.