# Serial port install/update problem

**URL:** <https://discourse.nodered.org/t/serial-port-install-update-problem/29821>\
**Category:** General\
**Created:** [10 July 2020 06:00 UTC](https://discourse.nodered.org/t/serial-port-install-update-problem/29821 "2020-07-10T06:00:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arpit8851](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@arpit8851](https://discourse.nodered.org/u/arpit8851)\
**Post date:** [10 July 2020 06:00 UTC](https://discourse.nodered.org/t/serial-port-install-update-problem/29821/1 "2020-07-10T06:00:07Z")

</div>

i want to update serial port in node red but its shown an error can anyone help me  
{

?2020-07-10T05:49:46.488Z Install : node-red-node-serialport 0.10.3

2020-07-10T05:49:46.500Z npm.cmd install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-node-serialport@0.10.3  
2020-07-10T05:50:12.669Z [out]  
2020-07-10T05:50:12.669Z [out] \> fs-ext@0.5.0 install C:\Users\User.node-red\node\_modules\fs-ext  
2020-07-10T05:50:12.669Z [out] \> node-gyp configure build  
2020-07-10T05:50:12.669Z [out]  
2020-07-10T05:50:12.700Z [out]  
2020-07-10T05:50:12.700Z [out] C:\Users\User.node-red\node\_modules\fs-ext\>if not defined npm\_config\_node\_gyp  
2020-07-10T05:50:12.700Z [out] (node "C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\npm-lifecycle\node-gyp-bin\....\node\_modules\node-gyp\bin\node-gyp.js" configure build ) else (node "C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" configure build )  
2020-07-10T05:50:36.726Z [err] gyp  
2020-07-10T05:50:36.727Z [err] ERR! find VS  
2020-07-10T05:50:36.727Z [err]  
2020-07-10T05:50:36.727Z [err] gyp ERR!  
2020-07-10T05:50:36.727Z [err] find VS msvs\_version not set from command line or npm config  
2020-07-10T05:50:36.727Z [err] gyp ERR!  
2020-07-10T05:50:36.727Z [err] find VS VCINSTALLDIR not set, not running in VS Command Prompt  
2020-07-10T05:50:36.727Z [err] gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer  
2020-07-10T05:50:36.727Z [err] gyp ERR! find VS looking for Visual Studio 2015  
2020-07-10T05:50:36.727Z [err] gyp  
2020-07-10T05:50:36.728Z [err] ERR! find VS - not found  
2020-07-10T05:50:36.728Z [err] gyp ERR!  
2020-07-10T05:50:36.728Z [err] find VS not looking for VS2013 as it is only supported up to Node.js 8  
2020-07-10T05:50:36.728Z [err] gyp ERR!  
2020-07-10T05:50:36.728Z [err] find VS  
2020-07-10T05:50:36.728Z [err] gyp ERR! find VS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2020-07-10T05:50:36.728Z [err] gyp ERR! find VS You need to install the latest version of Visual Studio  
2020-07-10T05:50:36.728Z [err] gyp ERR! find VS including the "Desktop development with C++" workload.  
2020-07-10T05:50:36.728Z [err] gyp ERR! find VS For more information consult the documentation at:  
2020-07-10T05:50:36.728Z [err] gyp ERR! find VS [https://github.com/nodejs/node-gyp#on-windows](https://github.com/nodejs/node-gyp#on-windows)  
2020-07-10T05:50:36.729Z [err] gyp ERR! find VS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2020-07-10T05:50:36.729Z [err] gyp ERR! find VS  
2020-07-10T05:50:36.730Z [err] gyp  
2020-07-10T05:50:36.730Z [err] ERR! configure error  
2020-07-10T05:50:36.731Z [err] gyp  
2020-07-10T05:50:36.731Z [err] ERR! stack Error: Could not find any Visual Studio installation to use  
2020-07-10T05:50:36.731Z [err] gyp  
2020-07-10T05:50:36.731Z [err] ERR! stack at VisualStudioFinder.fail (C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:121:47)  
2020-07-10T05:50:36.731Z [err] gyp  
2020-07-10T05:50:36.731Z [err] ERR! stack at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:74:16  
2020-07-10T05:50:36.731Z [err] gyp  
2020-07-10T05:50:36.732Z [err] ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:351:14)  
2020-07-10T05:50:36.732Z [err] gyp ERR! stack  
2020-07-10T05:50:36.732Z [err] at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:70:14  
2020-07-10T05:50:36.732Z [err] gyp ERR! stack  
2020-07-10T05:50:36.732Z [err] at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:372:16  
2020-07-10T05:50:36.732Z [err] gyp ERR!  
2020-07-10T05:50:36.732Z [err] stack at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\util.js:54:7  
2020-07-10T05:50:36.732Z [err] gyp ERR!  
2020-07-10T05:50:36.733Z [err] stack at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\util.js:33:16  
2020-07-10T05:50:36.733Z [err] gyp ERR!  
2020-07-10T05:50:36.733Z [err] stack at ChildProcess.exithandler (child\_process.js:310:5)  
2020-07-10T05:50:36.733Z [err] gyp  
2020-07-10T05:50:36.733Z [err] ERR! stack at ChildProcess.emit (events.js:315:20)  
2020-07-10T05:50:36.733Z [err] gyp  
2020-07-10T05:50:36.733Z [err] ERR! stack at maybeClose (internal/child\_process.js:1026:16)  
2020-07-10T05:50:36.734Z [err] gyp  
2020-07-10T05:50:36.734Z [err] ERR! System Windows\_NT 10.0.10240  
2020-07-10T05:50:36.734Z [err] gyp ERR!  
2020-07-10T05:50:36.734Z [err] command "C:\Program Files\nodejs\node.exe" "C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" "configure" "build"  
2020-07-10T05:50:36.734Z [err] gyp  
2020-07-10T05:50:36.734Z [err] ERR! cwd C:\Users\User.node-red\node\_modules\fs-ext  
2020-07-10T05:50:36.735Z [err] gyp ERR!  
2020-07-10T05:50:36.735Z [err] node -v v13.12.0  
2020-07-10T05:50:36.735Z [err] gyp ERR! node-gyp -v  
2020-07-10T05:50:36.735Z [err] v5.1.0  
2020-07-10T05:50:36.735Z [err] gyp ERR!  
2020-07-10T05:50:36.735Z [err] not ok  
2020-07-10T05:50:36.774Z [out]  
2020-07-10T05:50:36.774Z [out] \> @serialport/bindings@8.0.8 install C:\Users\User.node-red\node\_modules\node-red-node-serialport\node\_modules@serialport\bindings  
2020-07-10T05:50:36.774Z [out] \> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild  
2020-07-10T05:50:36.774Z [out]  
2020-07-10T05:50:39.780Z [err] prebuild-install  
2020-07-10T05:50:39.780Z [err] WARN install  
2020-07-10T05:50:39.781Z [err] No prebuilt binaries found (target=13.12.0 runtime=node arch=x64 libc= platform=win32)  
2020-07-10T05:50:39.799Z [out]  
2020-07-10T05:50:39.799Z [out] C:\Users\User.node-red\node\_modules\node-red-node-serialport\node\_modules@serialport\bindings\>if not defined npm\_config\_node\_gyp (node "C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\npm-lifecycle\node-gyp-bin\....\node\_modules\node-gyp\bin\node-gyp.js" rebuild )  
2020-07-10T05:50:39.799Z [out] else (node "C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" rebuild )  
2020-07-10T05:50:42.378Z [err] gyp  
2020-07-10T05:50:42.378Z [err] ERR!  
2020-07-10T05:50:42.378Z [err] find VS  
2020-07-10T05:50:42.378Z [err] gyp  
2020-07-10T05:50:42.378Z [err] ERR! find VS msvs\_version not set from command line or npm config  
2020-07-10T05:50:42.378Z [err] gyp  
2020-07-10T05:50:42.379Z [err] ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt  
2020-07-10T05:50:42.379Z [err] gyp ERR!  
2020-07-10T05:50:42.379Z [err] find VS could not use PowerShell to find Visual Studio 2017 or newer  
2020-07-10T05:50:42.379Z [err] gyp ERR! find VS  
2020-07-10T05:50:42.379Z [err] looking for Visual Studio 2015  
2020-07-10T05:50:42.379Z [err] gyp ERR! find VS - not found  
2020-07-10T05:50:42.379Z [err] gyp  
2020-07-10T05:50:42.379Z [err] ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8  
2020-07-10T05:50:42.379Z [err] gyp ERR!  
2020-07-10T05:50:42.379Z [err] find VS  
2020-07-10T05:50:42.379Z [err] gyp ERR! find VS  
2020-07-10T05:50:42.379Z [err] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2020-07-10T05:50:42.379Z [err] gyp ERR! find VS You need to install the latest version of Visual Studio  
2020-07-10T05:50:42.379Z [err] gyp  
2020-07-10T05:50:42.379Z [err] ERR! find VS including the "Desktop development with C++" workload.  
2020-07-10T05:50:42.379Z [err] gyp ERR! find VS For more information consult the documentation at:  
2020-07-10T05:50:42.380Z [err] gyp ERR! find VS [https://github.com/nodejs/node-gyp#on-windows](https://github.com/nodejs/node-gyp#on-windows)  
2020-07-10T05:50:42.380Z [err] gyp ERR! find VS  
2020-07-10T05:50:42.380Z [err] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2020-07-10T05:50:42.380Z [err] gyp ERR! find VS  
2020-07-10T05:50:42.381Z [err] gyp  
2020-07-10T05:50:42.381Z [err] ERR! configure error  
2020-07-10T05:50:42.381Z [err] gyp  
2020-07-10T05:50:42.381Z [err] ERR! stack Error: Could not find any Visual Studio installation to use  
2020-07-10T05:50:42.381Z [err] gyp  
2020-07-10T05:50:42.381Z [err] ERR! stack at VisualStudioFinder.fail (C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:121:47)  
2020-07-10T05:50:42.381Z [err] gyp  
2020-07-10T05:50:42.382Z [err] ERR! stack at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:74:16  
2020-07-10T05:50:42.382Z [err] gyp  
2020-07-10T05:50:42.382Z [err] ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:351:14)  
2020-07-10T05:50:42.382Z [err] gyp ERR! stack at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:70:14  
2020-07-10T05:50:42.382Z [err] gyp ERR! stack  
2020-07-10T05:50:42.382Z [err] at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\find-visualstudio.js:372:16  
2020-07-10T05:50:42.382Z [err] gyp ERR!  
2020-07-10T05:50:42.382Z [err] stack at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\util.js:54:7  
2020-07-10T05:50:42.382Z [err] gyp ERR! stack at C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\lib\util.js:33:16  
2020-07-10T05:50:42.382Z [err] gyp  
2020-07-10T05:50:42.383Z [err] ERR! stack at ChildProcess.exithandler (child\_process.js:310:5)  
2020-07-10T05:50:42.383Z [err] gyp  
2020-07-10T05:50:42.383Z [err] ERR! stack at ChildProcess.emit (events.js:315:20)  
2020-07-10T05:50:42.383Z [err] gyp  
2020-07-10T05:50:42.383Z [err] ERR! stack at maybeClose (internal/child\_process.js:1026:16)  
2020-07-10T05:50:42.383Z [err] gyp  
2020-07-10T05:50:42.383Z [err] ERR! System Windows\_NT 10.0.10240  
2020-07-10T05:50:42.384Z [err] gyp ERR!  
2020-07-10T05:50:42.384Z [err] command "C:\Program Files\nodejs\node.exe" "C:\Users\User\AppData\Roaming\npm\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" "rebuild"  
2020-07-10T05:50:42.384Z [err] gyp  
2020-07-10T05:50:42.384Z [err] ERR! cwd C:\Users\User.node-red\node\_modules\node-red-node-serialport\node\_modules@serialport\bindings  
2020-07-10T05:50:42.384Z [err] gyp ERR! node -v  
2020-07-10T05:50:42.384Z [err] v13.12.0  
2020-07-10T05:50:42.384Z [err] gyp ERR!  
2020-07-10T05:50:42.384Z [err] node-gyp -v v5.1.0  
2020-07-10T05:50:42.384Z [err] gyp  
2020-07-10T05:50:42.384Z [err] ERR! not ok  
2020-07-10T05:50:43.160Z [err] npm  
2020-07-10T05:50:43.161Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 (node\_modules\fs-ext):  
2020-07-10T05:50:43.161Z [err] npm  
2020-07-10T05:50:43.161Z [err] WARN optional  
2020-07-10T05:50:43.161Z [err] SKIPPING OPTIONAL DEPENDENCY: fs-ext@0.5.0 install: `node-gyp configure build`  
2020-07-10T05:50:43.161Z [err] npm WARN optional  
2020-07-10T05:50:43.161Z [err] SKIPPING OPTIONAL DEPENDENCY: Exit status 1  
2020-07-10T05:50:43.162Z [err]  
2020-07-10T05:50:43.372Z [err] npm  
2020-07-10T05:50:43.373Z [err] ERR! code ELIFECYCLE  
2020-07-10T05:50:43.373Z [err] npm ERR!  
2020-07-10T05:50:43.373Z [err] errno 1  
2020-07-10T05:50:43.374Z [err] npm ERR!  
2020-07-10T05:50:43.374Z [err] @serialport/bindings@8.0.8 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`  
2020-07-10T05:50:43.374Z [err] npm ERR! Exit status 1  
2020-07-10T05:50:43.374Z [err] npm ERR!  
2020-07-10T05:50:43.375Z [err] npm ERR! Failed at the @serialport/bindings@8.0.8 install script.  
2020-07-10T05:50:43.375Z [err] npm  
2020-07-10T05:50:43.375Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above.  
2020-07-10T05:50:43.533Z [err]  
2020-07-10T05:50:43.533Z [err] npm ERR! A complete log of this run can be found in:  
2020-07-10T05:50:43.533Z [err] npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-07-10T05\_50\_43\_399Z-debug.log  
2020-07-10T05:50:43.580Z rc=1  
}}

thank

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 July 2020 08:14 UTC](https://discourse.nodered.org/t/serial-port-install-update-problem/29821/2 "2020-07-10T08:14:07Z")

</div>

It looks like you are using nodejs 13 for which there are not pre-built bindings for the serialport. You can either drop back to nodejs 12 and then retry, or install the Visual Studio tools as per the error message

```auto
2020-07-10T05:50:42.379Z [err] gyp ERR! find VS You need to install the latest version of Visual Studio
2020-07-10T05:50:42.379Z [err] gyp
2020-07-10T05:50:42.379Z [err] ERR! find VS including the "Desktop development with C++" workload.
2020-07-10T05:50:42.379Z [err] gyp ERR! find VS For more information consult the documentation at:
2020-07-10T05:50:42.380Z [err] gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
2020-07-10T05:50:42.380Z [err] gyp ERR! find VS

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 July 2020 20:29 UTC](https://discourse.nodered.org/t/serial-port-install-update-problem/29821/3 "2020-07-10T20:29:27Z")

</div>

Do you have the windows build tools installed? You will need those quite commonly for node.js installations anyway. You can install them via npm.

---

<div class="post-metadata">

**Author:** ![arpit8851](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@arpit8851](https://discourse.nodered.org/u/arpit8851)\
**Post date:** [11 July 2020 06:25 UTC](https://discourse.nodered.org/t/serial-port-install-update-problem/29821/4 "2020-07-11T06:25:18Z")

</div>

thnx now it is working

---

<div class="post-metadata">

**Author:** ![arpit8851](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@arpit8851](https://discourse.nodered.org/u/arpit8851)\
**Post date:** [11 July 2020 06:26 UTC](https://discourse.nodered.org/t/serial-port-install-update-problem/29821/5 "2020-07-11T06:26:12Z")

</div>

thnx now it work

---

<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:** [25 July 2020 06:26 UTC](https://discourse.nodered.org/t/serial-port-install-update-problem/29821/6 "2020-07-25T06:26:16Z")

</div>

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