Espruino Web IDE on NPM (with Electron) #107
Replies: 11 comments
-
Posted at 2016-03-15 by conor This is great to see! Nearly works for me with Pico plugged into Raspberry Pi 3 Needed the following to install it:
But when I click Connect, I just get "Searching" in the ports popup. Tried with and without sudo. Also tried passing /dev/ttyACM0 as a parameter. No error printed out in terminal or inside the IDE's log. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-15 by @gfwilliams Try I'd be 99% certain it's saying something like Sadly it seems to be a major problem with both nw.js and electron, but it's usually just fixed by upgrading node.js |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-15 by @gfwilliams https://github.com/atom/electron/blob/master/docs/tutorial/using-native-node-modules.md |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-15 by conor No joy with --dbg. Nothing new appeared. But Node versioning sounds like the problem alright. I'm on 4.4.0 (Raspbian ships with 0.10.x) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-15 by @gfwilliams Actually I just looked at this a bit more and it seems that you can npm install electron-rebuild, run it, and then it'll rebuild everything for electron's version. That will probably sort it out for you... Looks like it can go in package.json so it all happens automatically, but I'm not 100% sure how to do that at the moment. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-15 by conor No joy with that but it may be user error. I'll try again later. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-16 by conor No success with starting back with completely clean slate (all node_modules and .node-gyp directories deleted) and just doing npm install espruino-web-ide. Now it won't even install.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-16 by @gfwilliams Try again now - I'd added some extra code that called (It seems to expect |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-16 by conor It now builds again but still no serial ports. I also tried
giving
I need to try on a non-RPi box to see if it's Pi or ARM specific. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-17 by @gfwilliams Ahh - might be an idea. I haven't tried it on the Pi... If only someone could come up with a serial port library that didn't need native modules. I would have thought just opening the file |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-17 by conor Yeah it's a pain. Just FYI - Exact same behaviour/error as the last one above with Node 4.2.6 on Fedora 23 x86-64 in a VBox VM. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-14 by @gfwilliams
Hi,
There's now a version of the Espruino Web IDE that runs under Node.js:
https://github.com/espruino/EspruinoWebIDE#installing-from-npm
It can be installed without Chrome, on Windows, Mac and Linux. At the moment it supports USB, Serial, and Bluetooth Low Energy.
So if you have a BBC Micro:bit or a Nordic device you've got Espruino running on, this is probably what you want (at least until more devices support Web Bluetooth).
Beta Was this translation helpful? Give feedback.
All reactions