Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RaspberryPi issue #1841

Open
technic404 opened this issue Feb 17, 2024 · 3 comments
Open

RaspberryPi issue #1841

technic404 opened this issue Feb 17, 2024 · 3 comments

Comments

@technic404
Copy link

I'm using Raspberry Pi 4B.

code:

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");).

@scottgonzalez
Copy link
Contributor

I have no issues with my Pi 400s.

But the provided error code looks more like a broken source file than an issue with Johnny-Five. It should be impossible for a Johnny-Five error to produce a SyntaxError.

@scottgonzalez
Copy link
Contributor

I'd try rm -rf node_modules && npm install.

@lbineau
Copy link

lbineau commented Mar 29, 2024

In addition you can try to install the main branch instead of npm (npm last update is 3years ago, while github is 1year ago).
https://github.com/rwaldron/johnny-five?tab=readme-ov-file#source-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants