Closed blalor closed 10 years ago
Due to the way that Node's dependency tree works, you also need to install cylon-gpio
alongside cylon-digispark
.
$ npm install cylon cylon-gpio cylon-digispark
$ node gpio.js
Should get you where you need to be.
I did get it to work by doing that, but it's non-intuitive. I wonder if twiddling some peerDependencies
would make this simpler. I mean, it makes sense that I'd need to depend upon cylon
and cylon-digispark
in my project, but cylon-gpio
is an implementation detail; I shouldn't need to provide it in my own project.
It's something we're looking into, but complex to get working due to the weird cross-dependencies we have with Cylon.
This has been fixed in the latest release, npm install cylon-digispark
will now install:
I have the following dependencies listed in my
package.json
:The following simple program fails to run:
The output is
re https://github.com/hybridgroup/cylon-digispark/commit/f8514e42116632f1e81ec5ae8abf3c737718f8ed#commitcomment-6594990