Visual built tools required for modbus nodes

Anyone could help?

2020-11-30T03:42:10.131Z Install : node-red-contrib-modbus 5.13.3

2020-11-30T03:42:10.144Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-modbus@5.13.3

2020-11-30T03:42:41.963Z [out]

2020-11-30T03:42:41.963Z [out] > @serialport/bindings@9.0.2 install C:\Users\my0fma.node-red\node_modules@serialport\bindings

2020-11-30T03:42:41.963Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2020-11-30T03:42:41.963Z [out]

2020-11-30T03:42:46.243Z [err] prebuild-install

2020-11-30T03:42:46.244Z [err] WARN install No prebuilt binaries found (target=14.15.1 runtime=node arch=x64 libc= platform=win32)

2020-11-30T03:42:46.345Z [out]

2020-11-30T03:42:46.345Z [out] C:\Users\my0fma.node-red\node_modules@serialport\bindings>if not defined npm_config_node_gyp

2020-11-30T03:42:46.346Z [out] (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

2020-11-30T03:42:56.378Z [err] gyp

2020-11-30T03:42:56.378Z [err] ERR!

2020-11-30T03:42:56.378Z [err] find VS

2020-11-30T03:42:56.378Z [err] gyp

2020-11-30T03:42:56.378Z [err] ERR!

2020-11-30T03:42:56.378Z [err] find VS msvs_version not set from command line or npm config

2020-11-30T03:42:56.378Z [err] gyp ERR! find VS

2020-11-30T03:42:56.378Z [err] VCINSTALLDIR not set, not running in VS Command Prompt

2020-11-30T03:42:56.378Z [err] gyp ERR!

2020-11-30T03:42:56.378Z [err] find VS could not use PowerShell to find Visual Studio 2017 or newer

2020-11-30T03:42:56.378Z [err] gyp

2020-11-30T03:42:56.378Z [err] ERR! find VS looking for Visual Studio 2015

2020-11-30T03:42:56.379Z [err] gyp ERR! find VS

2020-11-30T03:42:56.379Z [err] - not found

2020-11-30T03:42:56.379Z [err] gyp ERR!

2020-11-30T03:42:56.379Z [err] find VS not looking for VS2013 as it is only supported up to Node.js 8

2020-11-30T03:42:56.379Z [err] gyp

2020-11-30T03:42:56.379Z [err] ERR! find VS

2020-11-30T03:42:56.379Z [err] gyp ERR! find VS **************************************************************

2020-11-30T03:42:56.379Z [err] gyp ERR! find VS

2020-11-30T03:42:56.379Z [err] You need to install the latest version of Visual Studio

2020-11-30T03:42:56.379Z [err] gyp ERR! find VS including the "Desktop development with C++" workload.

2020-11-30T03:42:56.379Z [err] gyp

2020-11-30T03:42:56.379Z [err] ERR! find VS For more information consult the documentation at:

2020-11-30T03:42:56.379Z [err] gyp

2020-11-30T03:42:56.379Z [err] ERR! find VS https://github.com/nodejs/node-gyp#on-windows

2020-11-30T03:42:56.379Z [err] gyp

2020-11-30T03:42:56.380Z [err] ERR! find VS **************************************************************

2020-11-30T03:42:56.380Z [err] gyp

2020-11-30T03:42:56.380Z [err] ERR! find VS

2020-11-30T03:42:56.381Z [err] gyp

2020-11-30T03:42:56.381Z [err] ERR! configure error

2020-11-30T03:42:56.381Z [err] gyp

2020-11-30T03:42:56.382Z [err] ERR! stack Error: Could not find any Visual Studio installation to use

2020-11-30T03:42:56.382Z [err] gyp ERR!

2020-11-30T03:42:56.382Z [err] stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)

2020-11-30T03:42:56.382Z [err] gyp ERR!

2020-11-30T03:42:56.382Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16

2020-11-30T03:42:56.382Z [err] gyp ERR!

2020-11-30T03:42:56.382Z [err] stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)

2020-11-30T03:42:56.382Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14

2020-11-30T03:42:56.382Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16

2020-11-30T03:42:56.382Z [err] gyp ERR!

2020-11-30T03:42:56.382Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7

2020-11-30T03:42:56.382Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16

2020-11-30T03:42:56.382Z [err] gyp

2020-11-30T03:42:56.382Z [err] ERR! stack at ChildProcess.exithandler (child_process.js:315:5)

2020-11-30T03:42:56.382Z [err] gyp

2020-11-30T03:42:56.383Z [err] ERR! stack at ChildProcess.emit (events.js:315:20)

2020-11-30T03:42:56.383Z [err] gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)

2020-11-30T03:42:56.383Z [err] gyp

2020-11-30T03:42:56.383Z [err] ERR! System Windows_NT 10.0.18363

2020-11-30T03:42:56.383Z [err] gyp ERR!

2020-11-30T03:42:56.383Z [err] command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"

2020-11-30T03:42:56.383Z [err] gyp ERR! cwd

2020-11-30T03:42:56.383Z [err] C:\Users\my0fma.node-red\node_modules@serialport\bindings

2020-11-30T03:42:56.383Z [err] gyp ERR!

2020-11-30T03:42:56.384Z [err] node -v v14.15.1

2020-11-30T03:42:56.384Z [err] gyp

2020-11-30T03:42:56.384Z [err] ERR! node-gyp -v v5.1.0

2020-11-30T03:42:56.384Z [err] gyp ERR!

2020-11-30T03:42:56.384Z [err] not ok

2020-11-30T03:42:56.562Z [out]

2020-11-30T03:42:56.562Z [out] > @serialport/bindings@8.0.8 install C:\Users\my0fma.node-red\node_modules\modbus-serial\node_modules@serialport\bindings

2020-11-30T03:42:56.562Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2020-11-30T03:42:56.562Z [out]

2020-11-30T03:42:59.022Z [err] prebuild-install

2020-11-30T03:42:59.022Z [err] WARN install No prebuilt binaries found (target=14.15.1 runtime=node arch=x64 libc= platform=win32)

2020-11-30T03:42:59.122Z [out]

2020-11-30T03:42:59.122Z [out] C:\Users\my0fma.node-red\node_modules\modbus-serial\node_modules@serialport\bindings>if not defined npm_config_node_gyp

2020-11-30T03:42:59.122Z [out] (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

2020-11-30T03:43:08.601Z [err] gyp

2020-11-30T03:43:08.601Z [err] ERR! find VS

2020-11-30T03:43:08.601Z [err]

2020-11-30T03:43:08.601Z [err] gyp

2020-11-30T03:43:08.602Z [err] ERR! find VS msvs_version not set from command line or npm config

2020-11-30T03:43:08.602Z [err] gyp

2020-11-30T03:43:08.602Z [err] ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt

2020-11-30T03:43:08.602Z [err] gyp

2020-11-30T03:43:08.603Z [err] ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer

2020-11-30T03:43:08.603Z [err] gyp

2020-11-30T03:43:08.603Z [err] ERR! find VS looking for Visual Studio 2015

2020-11-30T03:43:08.603Z [err] gyp ERR! find VS - not found

2020-11-30T03:43:08.603Z [err] gyp ERR! find VS

2020-11-30T03:43:08.603Z [err] not looking for VS2013 as it is only supported up to Node.js 8

2020-11-30T03:43:08.603Z [err] gyp

2020-11-30T03:43:08.603Z [err] ERR! find VS

2020-11-30T03:43:08.603Z [err]

2020-11-30T03:43:08.603Z [err] gyp

2020-11-30T03:43:08.603Z [err] ERR!

2020-11-30T03:43:08.603Z [err] find VS **************************************************************

2020-11-30T03:43:08.603Z [err] gyp

2020-11-30T03:43:08.603Z [err] ERR! find VS

2020-11-30T03:43:08.603Z [err] You need to install the latest version of Visual Studio

2020-11-30T03:43:08.603Z [err] gyp

2020-11-30T03:43:08.603Z [err] ERR! find VS including the "Desktop development with C++" workload.

2020-11-30T03:43:08.603Z [err] gyp ERR!

2020-11-30T03:43:08.603Z [err] find VS For more information consult the documentation at:

2020-11-30T03:43:08.603Z [err] gyp

2020-11-30T03:43:08.603Z [err] ERR!

2020-11-30T03:43:08.604Z [err] find VS https://github.com/nodejs/node-gyp#on-windows

2020-11-30T03:43:08.604Z [err] gyp

2020-11-30T03:43:08.604Z [err] ERR!

2020-11-30T03:43:08.604Z [err] find VS **************************************************************

2020-11-30T03:43:08.604Z [err] gyp

2020-11-30T03:43:08.604Z [err] ERR!

2020-11-30T03:43:08.604Z [err] find VS

2020-11-30T03:43:08.605Z [err] gyp

2020-11-30T03:43:08.605Z [err] ERR! configure error

2020-11-30T03:43:08.605Z [err] gyp

2020-11-30T03:43:08.605Z [err] ERR! stack Error: Could not find any Visual Studio installation to use

2020-11-30T03:43:08.605Z [err] gyp ERR!

2020-11-30T03:43:08.605Z [err] stack

2020-11-30T03:43:08.605Z [err] at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)

2020-11-30T03:43:08.605Z [err] gyp

2020-11-30T03:43:08.605Z [err] ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16

2020-11-30T03:43:08.606Z [err] gyp ERR!

2020-11-30T03:43:08.606Z [err] stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)

2020-11-30T03:43:08.606Z [err] gyp

2020-11-30T03:43:08.606Z [err] ERR! stack

2020-11-30T03:43:08.606Z [err] at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14

2020-11-30T03:43:08.606Z [err] gyp

2020-11-30T03:43:08.606Z [err] ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16

2020-11-30T03:43:08.606Z [err] gyp ERR!

2020-11-30T03:43:08.606Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7

2020-11-30T03:43:08.606Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16

2020-11-30T03:43:08.606Z [err] gyp ERR!

2020-11-30T03:43:08.606Z [err] stack at ChildProcess.exithandler (child_process.js:315:5)

2020-11-30T03:43:08.606Z [err] gyp ERR! stack at ChildProcess.emit (events.js:315:20)

2020-11-30T03:43:08.606Z [err] gyp ERR!

2020-11-30T03:43:08.606Z [err] stack at maybeClose (internal/child_process.js:1048:16)

2020-11-30T03:43:08.607Z [err] gyp

2020-11-30T03:43:08.607Z [err] ERR! System Windows_NT 10.0.18363

2020-11-30T03:43:08.607Z [err] gyp

2020-11-30T03:43:08.607Z [err] ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"

2020-11-30T03:43:08.607Z [err] gyp

2020-11-30T03:43:08.607Z [err] ERR! cwd C:\Users\my0fma.node-red\node_modules\modbus-serial\node_modules@serialport\bindings

2020-11-30T03:43:08.607Z [err] gyp ERR!

2020-11-30T03:43:08.607Z [err] node -v v14.15.1

2020-11-30T03:43:08.607Z [err] gyp ERR! node-gyp -v

2020-11-30T03:43:08.608Z [err] v5.1.0

2020-11-30T03:43:08.608Z [err] gyp ERR! not ok

2020-11-30T03:43:11.238Z [err] npm

2020-11-30T03:43:11.238Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: @serialport/bindings@9.0.2 (node_modules@serialport\bindings):

2020-11-30T03:43:11.238Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @serialport/bindings@9.0.2 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2020-11-30T03:43:11.238Z [err] npm WARN

2020-11-30T03:43:11.238Z [err] optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

2020-11-30T03:43:11.239Z [err]

2020-11-30T03:43:11.291Z [err] npm ERR!

2020-11-30T03:43:11.291Z [err] code ELIFECYCLE

2020-11-30T03:43:11.291Z [err] npm ERR! errno 1

2020-11-30T03:43:11.300Z [err] npm

2020-11-30T03:43:11.300Z [err] ERR! @serialport/bindings@8.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2020-11-30T03:43:11.300Z [err] npm ERR! Exit status 1

2020-11-30T03:43:11.300Z [err] npm ERR!

2020-11-30T03:43:11.301Z [err] npm ERR! Failed at the @serialport/bindings@8.0.8 install script.

2020-11-30T03:43:11.301Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

2020-11-30T03:43:11.338Z [err]

2020-11-30T03:43:11.338Z [err] npm ERR! A complete log of this run can be found in:

2020-11-30T03:43:11.338Z [err] npm ERR! C:\Users\my0fma\AppData\Roaming\npm-cache_logs\2020-11-30T03_43_11_310Z-debug.log

2020-11-30T03:43:11.495Z rc=1

I think this part of the log output tells you exactly what is wrong and what you need to do

Do please read the Node-RED install instructions for Windows which I think include the instruction to install windows-build-tools globally which should be enough.

Update visual built tools via Node.js additional tools update solved the problem.

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