Espruino CLI and local modules

Posted on
  • Is it possible to use local modules with the CLI? The web IDE works great, but when I used the CLI, I get module not found error for my local modules.

    Thanks!

  • It should be fine - just stick anything you want in a modules folder, and the CLI will look in that for any modules.

  • Does that mean I need to start the CLI in a path that has "modules" folder? e.g. \projects is where .js file is, and modules is in \projects\modules?

    Thanks!

  • I believe so, yes. Thinking about it, it's possible that the module loader doesn't take the path of the file into account - only the current directory.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Espruino CLI and local modules

Posted by Avatar for n00b @n00b

Actions