Error Installing node-red-node-serialport 0.14.1

Hi Guys,

After a forced O/S reload (where has the internet gone during an OS update), I am having a problem installing node-red-node-serialport 0.14.1

Here is the console log:

2021-10-31T15:31:55.516Z Install : node-red-node-serialport 0.14.1

2021-10-31T15:31:55.523Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-serialport@0.14.1
2021-10-31T15:32:21.980Z [out] 
2021-10-31T15:32:21.980Z [out] > @serialport/bindings@9.2.5 install /home/ed/.node-red/node_modules/@serialport/bindings
2021-10-31T15:32:21.980Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-10-31T15:32:21.980Z [out] 
2021-10-31T15:32:23.209Z [err] prebuild-install
2021-10-31T15:32:23.209Z [err]  WARN install No prebuilt binaries found (target=14.18.1 runtime=node arch=x64 libc= platform=linux)
2021-10-31T15:32:23.905Z [out] make: Entering directory '/home/ed/.node-red/node_modules/@serialport/bindings/build'
2021-10-31T15:32:23.905Z [out]   CXX(target) Release/
2021-10-31T15:32:23.908Z [err] make: g++: No such file or directory
2021-10-31T15:32:23.908Z [err] make: *** [ Release/] Error 127
2021-10-31T15:32:23.908Z [out] make: Leaving directory '/home/ed/.node-red/node_modules/@serialport/bindings/build'
2021-10-31T15:32:23.909Z [err] gyp
2021-10-31T15:32:23.909Z [err]  
2021-10-31T15:32:23.909Z [err] ERR! build error 
2021-10-31T15:32:23.910Z [err] gyp 
2021-10-31T15:32:23.910Z [err] ERR! stack Error: `make` failed with exit code: 2
2021-10-31T15:32:23.910Z [err] gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2021-10-31T15:32:23.910Z [err] gyp ERR!
2021-10-31T15:32:23.910Z [err]  stack     at ChildProcess.emit (events.js:400:28)
2021-10-31T15:32:23.910Z [err] gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
2021-10-31T15:32:23.911Z [err] gyp 
2021-10-31T15:32:23.911Z [err] ERR! System Linux 5.11.12-300.fc34.x86_64
2021-10-31T15:32:23.911Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2021-10-31T15:32:23.911Z [err] gyp ERR! cwd /home/ed/.node-red/node_modules/@serialport/bindings
2021-10-31T15:32:23.911Z [err] gyp
2021-10-31T15:32:23.911Z [err]  ERR! node -v v14.18.1
2021-10-31T15:32:23.911Z [err] gyp 
2021-10-31T15:32:23.911Z [err] ERR! node-gyp -v v5.1.0
2021-10-31T15:32:23.911Z [err] gyp ERR! not ok 
2021-10-31T15:32:24.116Z [err] npm WARN
2021-10-31T15:32:24.116Z [err]  node-red-contrib-ui-digital-display@1.0.2 requires a peer of node-red-dashboard@^2.23.2 but none is installed. You must install peer dependencies yourself.
2021-10-31T15:32:24.135Z [err] npm WARN
2021-10-31T15:32:24.135Z [err]  node-red-project@0.0.1 No repository field.
2021-10-31T15:32:24.149Z [err] npm 
2021-10-31T15:32:24.149Z [err] WARN node-red-project@0.0.1 No license field.
2021-10-31T15:32:24.149Z [err] 
2021-10-31T15:32:24.166Z [err] npm ERR! code ELIFECYCLE
2021-10-31T15:32:24.166Z [err] npm ERR! errno 1
2021-10-31T15:32:24.175Z [err] npm ERR!
2021-10-31T15:32:24.175Z [err]  @serialport/bindings@9.2.5 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
2021-10-31T15:32:24.175Z [err] npm ERR! Exit status 1
2021-10-31T15:32:24.175Z [err] npm ERR! 
2021-10-31T15:32:24.175Z [err] npm ERR! Failed at the @serialport/bindings@9.2.5 install script.
2021-10-31T15:32:24.175Z [err] npm 
2021-10-31T15:32:24.175Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-10-31T15:32:24.191Z [err] 
2021-10-31T15:32:24.191Z [err] npm ERR! A complete log of this run can be found in:
2021-10-31T15:32:24.191Z [err] npm ERR!     /home/ed/.npm/_logs/2021-10-31T15_32_24_178Z-debug.log
2021-10-31T15:32:24.197Z rc=1

I see it is what I think is a g++ error....

Fedora 34 with an ID.10T induced error on the keyboard...

Any help would be appreciated...



sudo dnf install gcc-c++

Panic over.... For now!

You probably actually want

dnf group info "Development Tools"

Which is the RedHat/Fedroa/Centos version of apt-get install build-essentials

1 Like

Thank you!!

Will install in a mo!

Much appreciated!!

Edit: To install: dnf groupinstall "Development Tools"

1 Like

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