Electron failed to install correctly

if i run npm start inside enviroment qiime2-2017.7 …i have electron

(qiime2-2017.7) [email protected]:~/Documentos/qiime2/q2studio-2017.7.0$ npm start

> [email protected] start /home/gymlin/.local/share/Trash/files/q2studio-2017.7.0
> cross-env NODE_ENV=production electron -r babel-register build/main.js

/home/gymlin/.local/share/Trash/files/q2studio-2017.7.0/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/gymlin/.local/share/Trash/files/q2studio-2017.7.0/node_modules/electron/index.js:9:9)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/gymlin/.local/share/Trash/files/q2studio-2017.7.0/node_modules/electron/cli.js:3:16)
    at Module._compile (module.js:570:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `cross-env NODE_ENV=production electron -r babel-register build/main.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

┌──────────────────────────────────────────────────────────┐
│                 npm update check failed                  │
│           Try running with sudo or get access            │
│           to the local update config store via           │
│ sudo chown -R $USER:$(id -gn $USER) /home/gymlin/.config │
└──────────────────────────────────────────────────────────┘

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gymlin/.npm/_logs/2017-08-09T02_25_50_590Z-debug.log

how can fix it?

Hi @Omar_Carrasco!

Looking at that error message, it looks like Electron isn’t installed correctly:

Have you followed the instructions provided on the docs site?

I would suggest following the suggestion of the above error message, and remove the directory node_modules, and then try again with installing — perhaps there was a network hiccup that corrupted electron while fetching.

Keep us posted!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.