Skip to content

Instantly share code, notes, and snippets.

@mondalaci
Created August 29, 2017 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mondalaci/7c3f283e4914668a16cc34a5b10a0b3e to your computer and use it in GitHub Desktop.
Save mondalaci/7c3f283e4914668a16cc34a5b10a0b3e to your computer and use it in GitHub Desktop.
Agent-electron fails on the pi
pi@raspberrypi:~/repos/agent $ npm run electron
> uhk-agent@1.0.0 electron /home/pi/repos/agent
> lerna exec --scope uhk-agent npm start
lerna info version 2.1.0
lerna info scope uhk-agent
> uhk-agent@0.0.0 start /home/pi/repos/agent/packages/uhk-agent
> electron ./dist/electron-main.js
/home/pi/repos/agent/packages/uhk-agent/node_modules/electron/index.js:9
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object.<anonymous> (/home/pi/repos/agent/packages/uhk-agent/node_modules/electron/index.js:9:9)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/pi/repos/agent/packages/uhk-agent/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:573:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uhk-agent@0.0.0 start: `electron ./dist/electron-main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the uhk-agent@0.0.0 start 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/pi/.npm/_logs/2017-08-29T12_02_11_343Z-debug.log
lerna ERR! exec Errored while executing 'npm start' in 'uhk-agent'
lerna ERR! execute Error: Command failed: npm start
lerna ERR! execute at Promise.all.then.arr (/home/pi/repos/agent/node_modules/lerna/node_modules/execa/index.js:236:11)
lerna ERR! execute at <anonymous>
lerna ERR! execute at process._tickCallback (internal/process/next_tick.js:188:7)
lerna ERR! execute callback with error
lerna ERR! execute { Error: Command failed: npm start
lerna ERR! execute at Promise.all.then.arr (/home/pi/repos/agent/node_modules/lerna/node_modules/execa/index.js:236:11)
lerna ERR! execute at <anonymous>
lerna ERR! execute at process._tickCallback (internal/process/next_tick.js:188:7)
lerna ERR! execute stack: 'Error: Command failed: npm start\n at Promise.all.then.arr (/home/pi/repos/agent/node_modules/lerna/node_modules/execa/index.js:236:11)\n at <anonymous>\n at process._tickCallback (internal/process/next_tick.js:188:7)',
lerna ERR! execute code: 1,
lerna ERR! execute killed: false,
lerna ERR! execute stdout: null,
lerna ERR! execute stderr: null,
lerna ERR! execute failed: true,
lerna ERR! execute signal: null,
lerna ERR! execute cmd: 'npm start',
lerna ERR! execute timedOut: false }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uhk-agent@1.0.0 electron: `lerna exec --scope uhk-agent npm start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the uhk-agent@1.0.0 electron 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/pi/.npm/_logs/2017-08-29T12_02_11_569Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment