Hi there,
Yesterday I have updated node-red (in Home Assistant) and since that there is a conflict between node-red-node-sqlite and node-red-contrib-sqlitedb.
How can I resolve this issue? node-red-contrib-sqlitedb is required for another add-on, node-red-contrib-mysensors
Thanks for your answer. The strange thing is that I've had these two installed together for at least a year but only after this recent update, I have this error. What is changed that causes this?
What can I do to make the mysensors node work based on the sqlite node?
Hi @Colin .. yea possibly on Ubuntu it works without issue because the sqlite3 pre-built binaries are available for Nodejs v14 for that OS.
The problem I and @NodeC was facing was on windows systems with an error. node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@14.16.0
One way to solve it was to downgrade to node v12.
I had some time in the weekend and updated nodejs again to v14 on my win10 test system and followed @Steve-Mcl suggestion to install the windows build tools npm install --global windows-build-tools
and that did the trick.
Sqlite node installed and seems to be working.
ps. Sorry @rikki78 if this is totally unrelated to your issue.
root@a0d7b954-nodered:/config/node-red/node_modules$ npm remove node-red-node-sqlite
removed 1 package and audited 308 packages in 2.107s
16 packages are looking for funding
run `npm fund` for details
found 15 vulnerabilities (10 low, 5 high)
run `npm audit fix` to fix them, or `npm audit` for details
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ New major version of npm available! 6.14.11 โ 7.7.5 โ
โ Changelog: https://github.com/npm/cli/releases/tag/v7.7.5 โ
โ Run npm install -g npm to update! โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
root@a0d7b954-nodered:/config/node-red/node_modules$ npm install node-red-node-sqlite
+ node-red-node-sqlite@0.6.0
added 1 package from 1 contributor and audited 309 packages in 2.736s
16 packages are looking for funding
run `npm fund` for details
found 17 vulnerabilities (12 low, 5 high)
run `npm audit fix` to fix them, or `npm audit` for details
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ New major version of npm available! 6.14.11 โ 7.7.5 โ
โ Changelog: https://github.com/npm/cli/releases/tag/v7.7.5 โ
โ Run npm install -g npm to update! โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
root@a0d7b954-nodered:/config/node-red/node_modules$
Why are you running as root? The root account on Ubuntu is disabled by default and should not normally be enabled unless you have a good reason and know what you are doing.
Also I draw your attention to what I suggested, pay particular note to the bit about the folder.
I'm running home assistant, and node red is running in docker. To be able to access the container I have to be root.
The node red node modules are installed in this config folder and therefore I've run this command there. In this folder all the modules are installed, also when they are installed through the palette.
Thanks for the hint.
Is there any chance, removing the node and reinstalling will break it? I'm asking because it is used in quite some flows and if this doesn't work, the WAF will be greatly reduced if you understand what I mean