RaspberryPi issue

Author: mbatorskiCreated Feb 17, 2024Updated Mar 7, 2025

I'm using Raspberry Pi 4B.

code:

javascript
var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
    console.log('Ready!');
});

Error:

internal/deps/acorn/acorn/dist/acorn.js:4015
      (ch >= 0x41 /* A */ && ch м쀽 0聸耵C  *РØ 肪࠯, ɼ|逊 Ȩ   0䀨䡣jĠ>= 0x¶1 /ЪĠá */(&₦耠䁣聨ࠨ¼耿 8¸‷䉁Ƞ/쀪ဠࡺ */)
                                ^^

SyntaxError: Unexpected identifier

at Object.<anonymous> (/home/user/Desktop/node_modules/johnny-five/lib/repl.js:2:14)

As i was testing the issue, error is displayed in the first line (var five = require("johnny-five");).