Serial port install/update problem

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
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
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

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

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

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.

thnx now it is working

thnx now it work

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