Closed martinvahi closed 8 years ago
Is it possible to update to a newer version of node and try again? Maybe node v4?
npm WARN engine appdmg@0.4.5: wanted: {"node":">=0.12"} (current: {"node":"0.10.29","npm":"1.4.21"}
@martinvahi because electron-prebuilt not support arm.
Thank You both for Your answers.
What regards to the installation of some newer version of node, then at the start of "the long story" there is an attempt to upgrade the node:
npm install npm@latest
blablabla
npm update
but if it is really so as the c0b41 sais it is, that the "electron-prebuilt" does not support arm, then there is a flaw, because the point of nodejs, as little as I understand it, is to allow the creation of cross-platform applications and allow the use of the same code at both, the browser side and the server side, but if some of the packages are not cross-platform, then the question arises, what benefits does the npm and nodejs offer, if compared to other package collections and packaging systems?
On the other hand, if WebTorrent is designed to depend on nonportable dependencies, while trying to become a pervasive web technology, then there's an architectural flaw in WebTorrent.
I guess that You have to decide, what Your quality standards are. I see a flaw, but if You think that it's OK, then please feel free to close this bug report and consider the lack of Raspberry Pi support a non-issue, which would be a stupid idea, given the goal of the WebTorrent. I do not know. You decide.
Thank You for reading my comment.
electron is now releasing an arm version: https://github.com/electron/electron/releases/tag/v1.2.2
electron-prebuilt
will pick it up just fine. However, another person is having an issue with electron-prebuilt on a Pi 1. I know the Pi 1 uses ARMv6 and the Pi 2 uses ARMv7, so perhaps electron is targeting a newer ARM architecture with their build? Not sure.
npm install npm@latest
This is updating npm to the latest version. Node itself would need to be updated. There are some online resources available that talk about updating node on a pi 1, but its not a totally straightforward process unfortunately.
It would be pretty rad to have a webtorrent-desktop
version pre-built and downloadable so folks would not need to deal with the same painful process. This would probably involve more work and additional hardware to accomplish for each release. I don't know if this little open source project is ready to tackle these problems.
Another alternative is to use the webtorrent
CLI package instead. It has no native dependencies so it should work without issues on a pi (it may still require updating node to a newer version...).
So yeah, it sounds like there are some problems to solve here. If you do end up getting things running, please let us know!
@martinvahi You need to install nodejs-legacy
so that node
will be symlinked to nodejs
. See https://packages.debian.org/sid/nodejs-legacy That should fix the npm errors I'm seeing.
As @Flet says, you should also update Node.js to at least v4 (LTS). The PPA to use is here: https://github.com/nodesource/distributions#installation-instructions Not sure if there's other Pi-specific things you need to do to update Node.js.
The basics:
The long story: