npm-installer icon indicating copy to clipboard operation
npm-installer copied to clipboard

Install for raspberry pi

Open hawkerboy7 opened this issue 9 years ago • 9 comments

Using npm install nw on the RaspberryPi gives an error: Couldn't connect to http://dl.nwjs.io/v0.12.0/nwjs-v0.12.0-linux-arm.tar.gz (404)

Here I found the package. How can I get this to work with the npm-installer. I was thinking about somehow redirecting the url to download the correct file. Or is there no way for the npm-installer to support this version of linux-arm?

hawkerboy7 avatar Mar 26 '15 13:03 hawkerboy7

Yeah we can add the platform here: https://github.com/nwjs/npm-installer/blob/master/scripts/install.js#L28

shama avatar Mar 26 '15 16:03 shama

I don't think that's the problem.

I tried some stuff and I think it works. Only problem is that I don't have a Pi v2 so I will not work anyways. Maybe you could add a redirect in http://dl.nwjs.io/v0.12.0/ so
http://dl.nwjs.io/v0.12.0/nwjs-v0.12.0-linux-arm.tar.gz will open
https://github.com/jtg-gg/node-webkit/releases/nwjs-v0.12.0-linux-arm.tar.gz.

I don't know if I am asking something ridiculus now :) but on my pi I changed the install.js file to the github url and everything appeared to be working correctly (except I don't have a Pi v2)

hawkerboy7 avatar Mar 26 '15 16:03 hawkerboy7

Hmm that is weird, maybe it's not official? I'll look into it and see if I can figure out what's going on there.

shama avatar Mar 26 '15 16:03 shama

Here is the related issue: nwjs/nw.js#1151 It looks like support is in progress and that fork is the work in progress.

shama avatar Mar 26 '15 16:03 shama

Yes I found that one, jtg-gg has apparently made a version that should work. So maybe you could make the npm-installer link to jtg-gg's url containing the correct version for the Raspberry Pi?

Now I had to do quite some steps to get it running even though it's probably very simple :) jtg-gg's version doesn't support RaspberryPi 1, so I couldn't test it fully since I only have RPi 1

hawkerboy7 avatar Mar 26 '15 16:03 hawkerboy7

I think it's a work in progress though so maybe better to wait until https://github.com/nwjs/nw.js/issues/1151 lands as it looks like it will soon.

shama avatar Mar 26 '15 16:03 shama

Ok thanks for the info!

hawkerboy7 avatar Mar 26 '15 17:03 hawkerboy7

will nwjs or electron run on raspi 3 model b?

bitnom avatar Apr 26 '16 10:04 bitnom

npm install [email protected] --nwjs_urlbase=https://github.com/LeonardLaszlo/nw.js-armv7-binaries/releases/download/v might work to install NW.js ARMv7 binaries from @LeonardLaszlo.

Mithgol avatar Jul 12 '17 17:07 Mithgol