On July'20, I installed for a first time the nodeRED, and the node-red-contrib-modbus module in a win10 PC. I deployed a flow in order to read a modbus variable with a USB-RS485 converter. Everything worked fine.
Now, in december'20, I uninstall nodeRED, and install again. Once installed, I could not open the localhost:1880
I attach the window returned in the reinstallingNodeRed.png file.
I read in the forum, that I could know which modules are installed using the usr/lib/node.modules command.
I also attach the window returned after execute the node-red usr/lib/node-modules command.
What I didn't know was that executing this command, I would be able to open the localhost:1880 again, and indeed, I can view the flow I first generated on july.
I delete the nodes related to the node-red-contrib-modbus, and I try to install again, so I'm sure of taking the lastest version (5.13.3 - 6 months ago). I attach the faill message.
I do not remember which versions I installed first, on July, but it was the last version at that time. Rigth now, I'm using the nodeRED v1.2.6, and the Node.js v14.15.2.
What am I doing wrong? How can I add a modbus module again?
How can I delete node-modules? If I type it in the node.js prompt, either in the cmd, it says that delete is not recognized as an internal nor external command.
I didn't think that you refer to a hard disk folder in the PC, sorry. I thougth it were virtual folders.
Anyway, I don't have a package_lock.json file in the .node-red folder.
Excuse my ignorance, but the node-red folder is that called nodejs?
c:\Program Files\nodejs\node_modules\npm\node_modules
The package.json file hangs up of the npm folder. When you ask me to delete the node_modules folder, I understand that you refer to this last folder, don't you?
I've tried it. (The 4 steps you suggest, installing the windows build tools, and also re-installing node-red) and I don't succed!
One strange thing it's happenning: When I load the localhost:1880, the flow stops due to a missing node type (as shown in the attached file)