It looks like the electron postinstall is trying to write to /etc which isn’t allowed by Glitch.
Any hints as to a workaround? Should I complain to the electron people? Is there a way to tell npm to skip this postinstall? Maybe ask Glitch to allow things to be written to /etc/service/watcher?
Doh, --ignore-scripts skips the postinstall but doesn’t actually install electron. If you really want to install electron, you’ll have to fix the underlying problem, which is because Glitch defines TMPDIR to /etc: export | grep etc returns a line, declare -x TMPDIR="/etc/service/watcher". Overwrite this, e.g., export TMPDIR=/tmp and run npm install!
Glitch admins, why is TMPDIR set inside /etc instead of /tmp?