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

Problems installing on Raspberry Pi 1 (aka Zero) #177

Open
schmolmo opened this issue Jul 26, 2023 · 2 comments
Open

Problems installing on Raspberry Pi 1 (aka Zero) #177

schmolmo opened this issue Jul 26, 2023 · 2 comments

Comments

@schmolmo
Copy link

Hey there,

I'm trying to install both flok-web and flok-repl on a Raspberry Pi Model B (is this a very bad idea?).
After installing Node v11.5.0 as per here, I had success installing flok-repl, but after running it for the first time, I get the following:

pi@raspberrypi:~ $ flok-repl
/home/pi/.npm-global/lib/node_modules/flok-repl/bin/flok-repl.js:3
import dotenv from "dotenv";
       ^^^^^^

SyntaxError: Unexpected identifier
    at new Script (vm.js:83:7)
    at createScript (vm.js:267:10)
    at Object.runInThisContext (vm.js:319:10)
    at Module._compile (internal/modules/cjs/loader.js:684:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
    at executeUserCode (internal/bootstrap/node.js:342:17)

What could I be doing wrong? :-)

Could it be related to my Node.js install?

All best,
moritz

@munshkr
Copy link
Owner

munshkr commented Jul 26, 2023

Hi @schmolmo ! I think you're using a very old version of Node. Can you try installing the latest? I see that there's a script for v16.3.0 here

@schmolmo
Copy link
Author

Thanks for the hint! Sadly, the armv6 architecture doesn't seem to be supported by Node v16, when I run flok-web or flok-replI get:

pi@raspberrypi:~ $ flok-web


#
# Fatal error in , line 0
# Liftoff bailout should not happen. Cause: Armv6 not supported

#
#
#
#FailureMessage Object: 0xb59fd288
Illegal instruction

I found this workaround that I'd like to try, could you maybe point me to how I could build a version with this line changed in flok-web.js and flok-repl.js? Sadly I don't have much experience with using Node.js...

Thank you very much for your help!

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

2 participants