Snapcraft uses wrong node version for Raspberry Pi 3 Model B

While creating the snap in Ubuntu Core on my Raspberry Pi 3 Model B, snapcraft downloads ‘node-v6.10.2-linux-armv7l.tar.gz’ which is the wrong architecture, because the pi 3 model B has the armv8 processor which is 64bit. Can I tell snapcraft to use the x64 version of node?

The pi3 Ubuntu Core images we provide use 32bit.

64bit arm binaries use about twice the ram without providing much beneift (there is no significant speed-up by using 64bit on arm), using 64bit on a low-ram device like the Pi would simply make you run out of ram faster.

hmm, the thing is that my snap throws an error (Syntax error: “(” unexpected) which (I thought) means that the wrong node architecture is used for running the code.

I run a virtual machine with ubuntu core, and there the snap works just fine (amd64)

Ok, so I don’t know why, but I added node-engine: 4.0.0 and now it works… who knows :sweat_smile: thanks anyway :slight_smile:

Hi there, where can i find these core images you provide. I am just cutting my teeth on using snaps in core for my development and I installed core18 on the raspberrypi 3 and am having hell of a time getting node-red to access the GPIO and i2c bus.

what does snap connections node-red show ?

Interface          Plug                        Slot            Notes
audio-playback     node-red:audio-playback     -               -
bluetooth-control  node-red:bluetooth-control  -               -
bluez              node-red:bluez              -               -
camera             node-red:camera             -               -
desktop            node-red:desktop            -               -
gpio               node-red:gpio               pi:bcm-gpio-10  manual
gpio               node-red:gpio               pi:bcm-gpio-11  manual
gpio               node-red:gpio               pi:bcm-gpio-12  manual
gpio               node-red:gpio               pi:bcm-gpio-13  manual
gpio               node-red:gpio               pi:bcm-gpio-14  manual
gpio               node-red:gpio               pi:bcm-gpio-15  manual
gpio               node-red:gpio               pi:bcm-gpio-16  manual
gpio               node-red:gpio               pi:bcm-gpio-17  manual
gpio               node-red:gpio               pi:bcm-gpio-18  manual
gpio               node-red:gpio               pi:bcm-gpio-19  manual
gpio               node-red:gpio               pi:bcm-gpio-2   manual
gpio               node-red:gpio               pi:bcm-gpio-20  manual
gpio               node-red:gpio               pi:bcm-gpio-21  manual
gpio               node-red:gpio               pi:bcm-gpio-22  manual
gpio               node-red:gpio               pi:bcm-gpio-23  manual
gpio               node-red:gpio               pi:bcm-gpio-24  manual
gpio               node-red:gpio               pi:bcm-gpio-25  manual
gpio               node-red:gpio               pi:bcm-gpio-26  manual
gpio               node-red:gpio               pi:bcm-gpio-27  manual
gpio               node-red:gpio               pi:bcm-gpio-3   manual
gpio               node-red:gpio               pi:bcm-gpio-4   manual
gpio               node-red:gpio               pi:bcm-gpio-5   manual
gpio               node-red:gpio               pi:bcm-gpio-6   manual
gpio               node-red:gpio               pi:bcm-gpio-7   manual
gpio               node-red:gpio               pi:bcm-gpio-8   manual
gpio               node-red:gpio               pi:bcm-gpio-9   manual
home               node-red:home               -               -
network            node-red:network            :network        -
network-bind       node-red:network-bind       :network-bind   -
network-observe    node-red:network-observe    -               -
pulseaudio         node-red:pulseaudio         -               -
removable-media    node-red:removable-media    -               -
serial-port        node-red:serial-port        -               -

well, that looks perfectly fine …

EDIT: this thread is originally about building nodejs snaps, not really related to node-red, you should better open a fresh topic instead of hijacking several year old ones

I would agree. maybe I installed the wrong build?

snap version returns:

snap    2.45
snapd   2.45
series  16
kernel  5.3.0-1027-raspi2

sounds good. sorry I’m new…

1 Like