New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'firmata' - works only at manual copy to node_modules #1786
Comments
Hello try to install jhonny5 wih yarn and then install seriallport 9.2.8 |
Lol that worked but only at serialport v9.2.8 as you said.
But again there is the same error as above at installation -
At serialport v10.4.0 (the newest one) does not work.
That's weird. |
I had a similar problem with firmata and serialport when I tried to install my project on a new machine from a github clone. I couldn't figure out the problem, but at some point I realize that the new machine was running the most current version of Node, while the machine I built my project on was running an older version. I downgraded my version of Node to match the old version I built it with and everything installed perfectly. |
Hi there,
|
Hello there,
It looks like there is a some bug at johnny-five library's dependencies (I am not sure, please verify).
A long time ago I prepared simple NodeJS script to test NodeMcu V3 board and controlling it with the firmata firmware. And that worked but this time I could not install correctly Johnny-Five. So I made a new project with only 3 dependencies for a test:
And when I start the simple script shown below I got error.
Script:
Error:
I tried to install firmata but it is not possible.
I saw a like topic but in my case manual installation did not help.
How I did solve the problem:
Then I downloaded zip files firmata library (from packages folder) and I copied them to my project
node_modules
(I had to renamefirmata.js
folder tofirmata
).Additionally I had to install serialport because there was a next one error about missing module. But in this case it could be installed by
npm i serialport
.Next, I added manually to dependencies list
but still there is not possible to install them. I got the same error message as above (using node-gyp).
I tested at second PC to isolate my computer software issues. There was a same problem.
Did I do something wrong or that is kind of bug? What can I do to skip copy
firmata
at eachpackage.json
changes? :(Thank you in advance
System: Windows 10
The text was updated successfully, but these errors were encountered: