# Error Installing node-red-node-serialport 0.14.1

**URL:** <https://discourse.nodered.org/t/error-installing-node-red-node-serialport-0-14-1/53011>\
**Category:** General\
**Created:** [31 October 2021 15:39 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-serialport-0-14-1/53011 "2021-10-31T15:39:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [31 October 2021 15:39 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-serialport-0-14-1/53011/1 "2021-10-31T15:39:39Z")

</div>

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:

```auto

-----------------------------------------------------------
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/obj.target/bindings/src/serialport.o
2021-10-31T15:32:23.908Z [err] make: g++: No such file or directory
2021-10-31T15:32:23.908Z [err] make: *** [bindings.target.mk:112: Release/obj.target/bindings/src/serialport.o] 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...

Ed

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [31 October 2021 15:46 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-serialport-0-14-1/53011/2 "2021-10-31T15:46:24Z")

</div>

Solved.....

`sudo dnf install gcc-c++`

Panic over.... For now!

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [1 November 2021 08:10 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-serialport-0-14-1/53011/3 "2021-11-01T08:10:55Z")

</div>

You probably actually want

`dnf group info "Development Tools"`

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

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [1 November 2021 10:26 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-serialport-0-14-1/53011/4 "2021-11-01T10:26:02Z")

</div>

Thank you!!

Will install in a mo!

Much appreciated!!

Edit: To install: `dnf groupinstall "Development Tools"`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 November 2021 10:26 UTC](https://discourse.nodered.org/t/error-installing-node-red-node-serialport-0-14-1/53011/5 "2021-11-15T10:26:51Z")

</div>

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