Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install for raspberry pi #17

Open
hawkerboy7 opened this issue Mar 26, 2015 · 9 comments
Open

Install for raspberry pi #17

hawkerboy7 opened this issue Mar 26, 2015 · 9 comments

Comments

@hawkerboy7
Copy link

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?

@shama
Copy link
Contributor

shama commented Mar 26, 2015

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

@hawkerboy7
Copy link
Author

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)

@shama
Copy link
Contributor

shama commented Mar 26, 2015

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
Copy link
Contributor

shama commented Mar 26, 2015

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

@hawkerboy7
Copy link
Author

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

@shama
Copy link
Contributor

shama commented Mar 26, 2015

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

@hawkerboy7
Copy link
Author

Ok thanks for the info!

@bitnom
Copy link

bitnom commented Apr 26, 2016

will nwjs or electron run on raspi 3 model b?

@Mithgol
Copy link
Contributor

Mithgol commented Jul 12, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants