• I have a Raspberry Pi 3 and 2 and have successfully installed the EspruinoHub software on the Pi 3, but am having real problems in compiling the code on the Pi2. The following is an extract of the install and errors following the compile. Any help to diagnose why it is failing to compile would be very gratefullly received.

    Thank you.

    pi@raspberrypi2:~/EspruinoHub $ npm install
    npm WARN npm npm does not support Node.js v0.10.29
    npm WARN npm You should probably upgrade to a newer version of node as we
    npm WARN npm can't make any promises that npm will work with this version.
    npm WARN npm You can find the latest version at https://nodejs.org/
    
    > usb@1.2.0 install /home/pi/EspruinoHub/node_modules/usb
    > node-pre-gyp install --fallback-to-build
    
    node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/relea­ses/download/1.2.0/usb_bindings-v1.2.0-n­ode-v11-linux-arm.tar.gz 
    node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@0.10.29 (node-v11 ABI) (falling back to source compile with node-gyp) 
    make: Entering directory '/home/pi/EspruinoHub/node_modules/usb/b­uild'
      CC(target) Release/obj.target/libusb/libusb/libusb/­core.o
    
    --- Snip ---
    
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/bleno/node_modules/xpc-con­nection):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-con­nection):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
    npm WARN EspruinoHub@0.0.0 No repository field.
    npm WARN EspruinoHub@0.0.0 license should be a valid SPDX license expression
    pi@raspberrypi2:~/EspruinoHub $ 
    pi@raspberrypi2:~/EspruinoHub $ cd ..
    pi@raspberrypi2:~ $ node -v
    v0.10.29
    pi@raspberrypi2:~ $ sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
    pi@raspberrypi2:~ $ 
    pi@raspberrypi2:~ $ 
    pi@raspberrypi2:~ $ cd EspruinoHub/
    pi@raspberrypi2:~/EspruinoHub $ ./start.sh 
    setterm: terminal xterm-256color does not support --blank
    
    /home/pi/EspruinoHub/node_modules/mqtt/l­ib/connect/index.js:100
        const isSecure = ['mqtts', 'wss'].indexOf(opts.protocol) !== -1
        ^^^^^
    SyntaxError: Use of const in strict mode.
        at Module._compile (module.js:439:25)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:364:17)
        at require (module.js:380:17)
        at Object.<anonymous> (/home/pi/EspruinoHub/node_modules/mqtt/­mqtt.js:12:15)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
    pi@raspberrypi2:~/EspruinoHub $ 
    
    
About

Avatar for Eric @Eric started