Skip to content

Instantly share code, notes, and snippets.

@xmunoz
Last active January 12, 2018 14:37
Show Gist options
  • Save xmunoz/c218a94bb6bd258586919e85bc205af7 to your computer and use it in GitHub Desktop.
Save xmunoz/c218a94bb6bd258586919e85bc205af7 to your computer and use it in GitHub Desktop.
electron whyyyy

Electron is a steaming pile of garbage with a million dependencies. Without it though, nightmare.js won't work. Worse even, it will die silently, nary an error message in sight. Here is my guide for installing electron.

  1. Pour yourself a glass of wine. You are going to be here a while.
apt-get update
apt-get upgrade
  1. Install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
  1. Install latest version of node
nvm install node
  1. Do this: https://hub.docker.com/r/aheuermann/electron/~/dockerfile/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment