npm-installer
npm-installer copied to clipboard
Install for raspberry pi
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?
Yeah we can add the platform here: https://github.com/nwjs/npm-installer/blob/master/scripts/install.js#L28
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)
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.
Here is the related issue: nwjs/nw.js#1151 It looks like support is in progress and that fork is the work in progress.
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
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.
Ok thanks for the info!
will nwjs or electron run on raspi 3 model b?
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.