Problem with postinstall script
Xisabla opened this issue · 7 comments
When I try to install nw package I have this error :
As gist: https://gist.github.com/Xisabla/b0803b338d757ebe753875665ceb278c
Here is the log gist : https://gist.github.com/Xisabla/733676edaed4248c7b503b1033b87be9
I'm running node & npm on raspbian (Linux 8 jessie), I tried updating npm & reinstalling node, nothing changed.
What's the npm's version? What's the Node's version?
Npm version is 4.5.0 and Node's 7.10.0
I even tried in sudo and it changed nothing :/
Ah, now I get it.
I should have noticed sooner that the nature of this error is clearly different from #42.
We actually see the results of line 54 of the script which is reporting a “404 Not Found” error from the network.
However, I could not reproduce this error on my side by merely running npm install nw@0.22.1
right now.
Therefore I strongly suspect that the binary-hosting server (and the binary-downloading code) is fine, and the error is actually caused by one of the following causes:
-
either something blocks
download
module from connecting to thedl.nwjs.io
on your system (for example. a proxy-related problem, like in #55), -
or the
download
module does not even start trying to download https://dl.nwjs.io/v0.22.1/nwjs-v0.22.1-linux-x64.tar.gz or https://dl.nwjs.io/v0.22.1/nwjs-v0.22.1-linux-ia32.tar.gz because yourprocess.arch
is neither'x64'
nor'ia32'
on a Raspbian (it's likely to be'arm'
).
The latter seems quite likely to be the real reason here.
NW.js does not seem to provide downloadable binaries for ARMs of Raspberry Pies (and thus the nw
package cannot download the binaries), though you may try some third-party ideas about building such binaries.
Ok I understand, it's due to the ARM architecture.
I'll try the method you are proposing to me :)
The issue is closed.