Ubuntu Core & Node-Red Modbus

Hi everyone,

I'm new at node-red world. I need to read data with modbus.I'm trying to install node-red-contrib-modbus palette to my dashboard.But I can't.
Here is the problems video link;

Thanks..

Rather than post a video explain the problem or copy/paste the error, if any, from the node red log. Run node-red-log to show the log then try the install from the editor.

Hi Colin,

Thanks for the answer.
Here is the log file.

-----------------------------------------------------------
2020-03-29T10:19:42.260Z Install : node-red-contrib-modbus 5.4.0

2020-03-29T10:19:16.712Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-modbus@5.4.0
2020-03-29T10:19:36.263Z [err] npm
2020-03-29T10:19:36.263Z [err]  WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2020-03-29T10:19:46.870Z [out] 
2020-03-29T10:19:46.870Z [out] > @serialport/bindings@8.0.7 install /root/snap/node-red/560/node_modules/@serialport/bindings
2020-03-29T10:19:46.870Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2020-03-29T10:19:46.870Z [out] 
2020-03-29T10:19:48.506Z [err] prebuild-install
2020-03-29T10:19:48.506Z [err]  WARN install
2020-03-29T10:19:48.507Z [err]  No prebuilt binaries found (target=10.19.0 runtime=node arch=arm libc= platform=linux)
2020-03-29T10:19:52.588Z [err] gyp
2020-03-29T10:19:52.589Z [err]  
2020-03-29T10:19:52.590Z [err] ERR! 
2020-03-29T10:19:52.590Z [err] build error 
2020-03-29T10:19:52.592Z [err] gyp
2020-03-29T10:19:52.592Z [err]  ERR! stack
2020-03-29T10:19:52.592Z [err]  Error: not found: make
2020-03-29T10:19:52.592Z [err] gyp
2020-03-29T10:19:52.592Z [err]  ERR! 
2020-03-29T10:19:52.592Z [err] stack     at getNotFoundError (/snap/node-red/560/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-03-29T10:19:52.592Z [err] gyp 
2020-03-29T10:19:52.592Z [err] ERR! 
2020-03-29T10:19:52.593Z [err] stack     at F (/snap/node-red/560/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-03-29T10:19:52.593Z [err] gyp 
2020-03-29T10:19:52.593Z [err] ERR! 
2020-03-29T10:19:52.593Z [err] stack     at E (/snap/node-red/560/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-03-29T10:19:52.593Z [err] gyp 
2020-03-29T10:19:52.593Z [err] ERR! 
2020-03-29T10:19:52.593Z [err] stack     at /snap/node-red/560/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-03-29T10:19:52.593Z [err] gyp 
2020-03-29T10:19:52.594Z [err] ERR! 
2020-03-29T10:19:52.594Z [err] stack     at /snap/node-red/560/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-03-29T10:19:52.594Z [err] gyp
2020-03-29T10:19:52.594Z [err]  ERR!
2020-03-29T10:19:52.594Z [err]  stack
2020-03-29T10:19:52.594Z [err]      at /snap/node-red/560/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-03-29T10:19:52.594Z [err] gyp
2020-03-29T10:19:52.594Z [err]  ERR!
2020-03-29T10:19:52.594Z [err]  stack
2020-03-29T10:19:52.595Z [err]      at FSReqWrap.oncomplete (fs.js:153:21)
2020-03-29T10:19:52.595Z [err] gyp
2020-03-29T10:19:52.596Z [err]  ERR! System
2020-03-29T10:19:52.596Z [err]  Linux 5.3.0-1019-raspi2
2020-03-29T10:19:52.596Z [err] gyp
2020-03-29T10:19:52.597Z [err]  ERR! 
2020-03-29T10:19:52.597Z [err] command
2020-03-29T10:19:52.597Z [err]  "/snap/node-red/560/bin/node" "/snap/node-red/560/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-03-29T10:19:52.597Z [err] gyp
2020-03-29T10:19:52.597Z [err]  ERR!
2020-03-29T10:19:52.597Z [err]  cwd
2020-03-29T10:19:52.597Z [err]  /root/snap/node-red/560/node_modules/@serialport/bindings
2020-03-29T10:19:52.597Z [err] gyp 
2020-03-29T10:19:52.597Z [err] ERR! 
2020-03-29T10:19:52.598Z [err] node -v v10.19.0
2020-03-29T10:19:52.598Z [err] gyp
2020-03-29T10:19:52.598Z [err]  ERR!
2020-03-29T10:19:52.598Z [err]  
2020-03-29T10:19:52.598Z [err] node-gyp -v v5.0.5
2020-03-29T10:19:52.598Z [err] gyp
2020-03-29T10:19:52.598Z [err]  ERR!
2020-03-29T10:19:52.598Z [err]  
2020-03-29T10:19:52.599Z [err] not ok 
2020-03-29T10:19:53.442Z [err] npm
2020-03-29T10:19:53.443Z [err]  ERR! code ELIFECYCLE
2020-03-29T10:19:53.444Z [err] npm
2020-03-29T10:19:53.444Z [err]  ERR! errno 1
2020-03-29T10:19:53.451Z [err] npm
2020-03-29T10:19:53.452Z [err]  ERR! @serialport/bindings@8.0.7 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
2020-03-29T10:19:53.452Z [err] npm ERR! Exit status 1
2020-03-29T10:19:53.452Z [err] npm
2020-03-29T10:19:53.452Z [err]  ERR! 
2020-03-29T10:19:53.452Z [err] npm 
2020-03-29T10:19:53.453Z [err] ERR! Failed at the @serialport/bindings@8.0.7 install script.
2020-03-29T10:19:53.453Z [err] npm ERR!
2020-03-29T10:19:53.453Z [err]  This is probably not a problem with npm. There is likely additional logging output above.
2020-03-29T10:19:53.538Z [err] 
2020-03-29T10:19:53.539Z [err] npm ERR!
2020-03-29T10:19:53.539Z [err]  A complete log of this run can be found in:
2020-03-29T10:19:53.539Z [err] npm ERR!
2020-03-29T10:19:53.540Z [err]      /root/snap/node-red/560/.npm/_logs/2020-03-29T10_19_53_484Z-debug.log
2020-03-29T10:19:53.573Z rc=1

I see you are using the snap install of node-red. I don't use that, I believe it does make some things more complex. The problem I think is that the snap does not have the build tools installed, so it can't build the node, but you will have to wait for someone else to help with this.
Is there a reason you are using the snap? If not and you are using Raspbian, Ubuntu or other Debian based distribution then recommended install method is:
https://nodered.org/docs/getting-started/raspberrypi

[Edit] Oh I see you are using ubuntu core, in that case you need to install build-essential I think. Assuming it is the same package as on regular ubuntu.

Hi Colin,

Thank you for your answer. I succesfuly installed the node red on ubuntu core classic mode. But when i restart the board node-red is not run automaticly. I'm triyng the fix this problem. By the way I installed modbus nodes succesfluly.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.