美味的小圓
Deno9mo ago
4 replies
美味的小圓

Segmentation fault when using johnny-five with deno

I want to using johnny-five with deno, here is my code:
// @deno-types="npm:@types/johnny-five"
import { Board, Led } from "johnny-five";

const board = new Board();

board.on("ready", () => {
  const led = new Led(13);

  led.blink(1000);
});

But when I try to run it, I got this
zsh: segmentation fault  deno run -A main.ts

Any idea how to solve it?
(Note: node-gyp has been installed with Deno globally, also added --allow-script params, no error occurred when installing)
Was this page helpful?