bitpool / edge-modbus

Set of Node-RED modules to support reading Modbus devices
MIT License
4 stars 3 forks source link

bp-modbus-client not found #5

Open MiguelRenato opened 6 months ago

MiguelRenato commented 6 months ago

After I upgraded it looked like this

Alpine Linux 3.19
Node-RED:~# node-red
13 Jun 22:14:44 - [info] 

Welcome to Node-RED
===================

13 Jun 22:14:44 - [info] Node-RED version: v3.1.10
13 Jun 22:14:44 - [info] Node.js  version: v20.12.1
13 Jun 22:14:44 - [info] Linux 6.8.4-2-pve x64 LE
13 Jun 22:14:45 - [info] Loading palette nodes
13 Jun 22:14:47 - [info] Settings file  : /root/.node-red/settings.js
13 Jun 22:14:47 - [info] Context store  : 'default' [module=memory]
13 Jun 22:14:47 - [info] User directory : /root/.node-red
13 Jun 22:14:47 - [warn] Projects disabled : editorTheme.projects.enabled=false
13 Jun 22:14:47 - [info] Flows file     : /root/.node-red/flows.json
13 Jun 22:14:47 - [info] Creating new flow file
13 Jun 22:14:47 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

13 Jun 22:14:47 - [info] Server now running at http://127.0.0.1:1880/
13 Jun 22:14:47 - [warn] Encrypted credentials not found
13 Jun 22:14:47 - [info] Starting flows
13 Jun 22:14:47 - [info] Started flows
13 Jun 22:15:25 - [info] Installing module: @bitpoolos/edge-modbus, version: 1.5.8
13 Jun 22:15:46 - [info] Installed module: @bitpoolos/edge-modbus
13 Jun 22:15:46 - [info] Added node types:
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-device
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-reader
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-decoder
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-display
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-modbus-io-config
13 Jun 22:15:46 - [info]  - @bitpoolos/edge-modbus:bp-modbus-client : Error: Cannot find module 'underscore'
Require stack:
- /root/.node-red/node_modules/@bitpoolos/edge-modbus/bp-modbus-client.js
- /usr/local/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js
- /usr/local/lib/node_modules/node-red/node_modules/@node-red/registry/lib/index.js
- /usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index.js
- /usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/index.js
- /usr/local/lib/node_modules/node-red/lib/red.js
- /usr/local/lib/node_modules/node-red/red.js

image

MiguelRenato commented 6 months ago

I found the solution I need to install "underscore"

cd /usr/local/bin/nod-red/node_modules/@bitpoolos/edge-modbus
npm install underscore
reboot

Sorry

bitpool-dev commented 6 months ago

Hi Miguel

Thank you for posting the resolution, we were unable to replicate locally, but will look into this occurrence with this new information.

tobi119 commented 4 months ago

Thank you for this solution. I found it after hours of troubleshooting. I'm new to NodeRed and have installed it on Proxmox