I’m struggling with making working the command-line tools on MacOS High Sierra.
I have tried via Homebrew and via MacOS installer from nodejs.org and still getting some errors permission related when installing:
sudo npm install -g serialport
sudo npm install -g espruino
even if I manage to install it with some errors and warnings, espruino does not see serial ports.
Espruino Web IDE works absolutely fine.
Any suggestions how to install the fully working command-line espruino on MacOS please?
I would love to use it with Atom.
Perhaps it is the case you are using node v10 and higher? The serialport version that the espruino package uses doesn't install there (I created an issue for that yesterday https://github.com/espruino/EspruinoTools/issues/86).
It all works for me with node v8.x.
It looks like that's the problem - are you on Node 10?
I just installed Node 10 and unfortunately it seems that I can't find any version of serialport that will install. Let's discuss it on that GitHub issue.
@Grzegorz_ please can you just post up your issue once in future? I do look at all the posts, so posting twice just means it takes me marginally more time to answer your questions.
Apologies for crossposting, I have installed node v8 with serialport and Espruino works fine, thank you!!!
Great! I've also updated the CLI tool to a new version of the serialport library so it should now work even in Node 10.
However Node 10 has broken the Bluetooth library as well and there's nothing I can do about that - so you're definitely best off sticking with Node 8 for now.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem