News for hackers. Stuff that matters.
Re:Qbrt – Cross-platform HTML/JS desktop apps using the Fire... by jancsika on Saturday July 29, 2017 @11:07PM (#14884229)
It appears both electron and nw.js can be installed through npm (though the electron one is more up-to-date than the nw.js one:

https://www.npmjs.com/package/nwjs

and electron:

https://github.com/electron-userland/electron-prebuilt

Re:Qbrt – Cross-platform HTML/JS desktop apps using the Fire... by roryisok on Sunday July 30, 2017 @02:39AM (#14884717)
You can install electron globally but if you package your app to target electron prebuilt you'd have to require the use to have installed both it and nodejs already.

It's not completely bonkers. It could be possible to make a web installer that checks for node and electron and downloads them if necessary. Nobody seems to do that though. Every electron app bundles electron. At least every one I've seen

Re:Qbrt – Cross-platform HTML/JS desktop apps using the Fire... by rtpg on Sunday July 30, 2017 @05:20AM (#14885151)
Part of the problem here is that the entire JS ecosystem is built around local copies of things, so there might not be a lot of institutional knowledge in that corner of OSS to pull off the "shared env" thing quite well.

That plus scarring from browser differences over N years.

Of course it's still totally possible, but there are probably gotchas that aren't obvious if you're mainly a web developer.

Re:Qbrt – Cross-platform HTML/JS desktop apps using the Fire... by iipin on Saturday July 29, 2017 @11:43PM (#14884337)
But your distributed applications certainly do not use those installed by npm, right?