-
• #2
Looks like the serialport module won't install for you. You must have changed something - any idea what? Did you install a new node version?
Can you try 'npm install serialport' and see if it completes without errors? If not perhaps you could contact the node serialport project and ask for help?
-
• #3
Ok, I got confused - this is about gzip's
espruino-cli
after all. I have similar problems when installing it and I think it's to do withespruino-cli
using an out of dateserialport
module (1.2.5) when we're up to at least version 4.0 now.Try
sudo npm install -g espruino
and use theespruino
tool and notespruino-cli
. That's the one I actually maintain, and contains a whole bunch of extra features. It's basically got all the Web IDE's backend packaged into a CLI. -
• #4
yes, updated node and npm...
Inspired by your suggestion I decided to reinstall
espruino
andespruino-cli
, I believe there is something wrong withespruino-cli
itself.Anyways, a clean install of
espruino
npm package and fixing XCode has solved it.
As I noticedespruino
package goes withespruino-cli
and installingespruino-cli
by itself creates havoc. Not mentioning thatnode-gyp
has its own problems with XcodeThank you for help!
-
• #5
@ancienthero any tips to fix the node-gpy Xcode problems ?
-
• #6
@tbd Yes, after hours of trial and error, this finally worked for me:
Install Xcode
Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developerunfortunately it requires to install Xcode (5GB or so).
here is full thread: https://github.com/nodejs/node-gyp/issues/569
-
• #7
It seems that Node.js has been pushing ahead with NAPI modules (that don't need a recompile for each version of Node.js) - so hopefully at some point in the next year we won't have this nightmare to worry about :(
Sad to say, but look like Command line tool is dead for me, I've spent 5 h or so trying to fix it..
I've been using command line. I prefer my own editor and I'm not a fan of copying large chunks of code from my editor into web IDE...
Updated npm packages and tried to connect like always, but got this:
https://gist.github.com/ancienthero/1e6d2e66350f20a393d73c0caa3ffda4
Seemed like
espruino-cli
I decided to updateespruino-cli
but I got this:https://gist.github.com/ancienthero/16f801d83d871b1e0b8997d0b386146a
Please help!
I've opened issues https://github.com/espruino/EspruinoTools/issues/66 , https://github.com/gzip/esp-cli/issues/2