Unable to install ncd-red-wireless


the attached is the error i got when i tried to install ncd-red-wireless for sensor.

please help I'm finding it difficult; to carry out my work without the ncd-red-wireless installed. and i have a week to deliver my work.

Hi @engrponle

the screenshot you've shared doesn't show the full error. Please copy and paste the whole error log from the point it starts trying to install.


Output log

2023-04-11T11:00:17.880Z Install : ncd-red-wireless 1.6.16

2023-04-11T11:00:17.938Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict ncd-red-wireless@1.6.16

2023-04-11T11:00:20.632Z [err] npm

2023-04-11T11:00:20.633Z [err] WARN config production Use `--omit=dev` instead.

2023-04-11T11:00:35.111Z [err] npm

2023-04-11T11:00:35.111Z [err] ERR! code 1

2023-04-11T11:00:35.111Z [err] npm ERR!

2023-04-11T11:00:35.112Z [err] path C:\Users\USER\.node-red\node_modules\@serialport\bindings

2023-04-11T11:00:35.115Z [err] npm

2023-04-11T11:00:35.115Z [err] ERR! command failed

2023-04-11T11:00:35.115Z [err] npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2023-04-11T11:00:35.115Z [err] npm ERR! gyp info it worked if it ends with ok

2023-04-11T11:00:35.115Z [err] npm

2023-04-11T11:00:35.116Z [err] ERR! gyp info using node-gyp@9.3.1

2023-04-11T11:00:35.116Z [err] npm ERR! gyp info using node@19.8.1 | win32 | x64

2023-04-11T11:00:35.116Z [err] npm ERR! gyp info find Python using Python version 3.11.2 found at "C:\Python311\python.exe"

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS checking VS2019 (16.11.33423.256) found at:

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS - found VC++ toolset: v142

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS - missing any Windows SDK

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use

2023-04-11T11:00:35.117Z [err] npm

2023-04-11T11:00:35.117Z [err]

2023-04-11T11:00:35.117Z [err] ERR! gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS

2023-04-11T11:00:35.117Z [err] npm ERR!

2023-04-11T11:00:35.117Z [err] gyp ERR! find VS **************************************************************

2023-04-11T11:00:35.117Z [err] npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio

2023-04-11T11:00:35.117Z [err] npm ERR!

2023-04-11T11:00:35.118Z [err] gyp ERR! find VS including the "Desktop development with C++" workload.

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! find VS For more information consult the documentation at:

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! find VS **************************************************************

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! find VS

2023-04-11T11:00:35.118Z [err] npm

2023-04-11T11:00:35.118Z [err] ERR! gyp ERR! configure error

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use

2023-04-11T11:00:35.118Z [err] npm ERR!

2023-04-11T11:00:35.118Z [err] gyp ERR! stack at VisualStudioFinder.fail (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16

2023-04-11T11:00:35.118Z [err] npm ERR!

2023-04-11T11:00:35.118Z [err] gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:369:14)

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2015 (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:353:14)

2023-04-11T11:00:35.118Z [err] npm ERR!

2023-04-11T11:00:35.118Z [err] gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:67:12

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! stack at VisualStudioFinder.parseData (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:237:5)

2023-04-11T11:00:35.118Z [err] npm

2023-04-11T11:00:35.118Z [err] ERR! gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:143:14

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:411:7)

2023-04-11T11:00:35.118Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:512:28)

2023-04-11T11:00:35.118Z [err] npm ERR!

2023-04-11T11:00:35.119Z [err] gyp ERR! System Windows_NT 10.0.19044

2023-04-11T11:00:35.119Z [err] npm ERR! gyp 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"

2023-04-11T11:00:35.119Z [err] npm

2023-04-11T11:00:35.119Z [err] ERR! gyp ERR! cwd C:\Users\USER\.node-red\node_modules\@serialport\bindings

2023-04-11T11:00:35.119Z [err] npm ERR! gyp ERR! node -v v19.8.1

2023-04-11T11:00:35.119Z [err] npm ERR! gyp ERR! node-gyp -v v9.3.1

2023-04-11T11:00:35.119Z [err] npm ERR!

2023-04-11T11:00:35.119Z [err] gyp ERR! not ok

2023-04-11T11:00:35.121Z [err]

2023-04-11T11:00:35.121Z [err] npm ERR! A complete log of this run can be found in: C:\Users\USER\AppData\Local\npm-cache\_logs\2023-04-11T11_00_20_588Z-debug-0.log

2023-04-11T11:00:35.158Z rc=1

-----------------------------------------------------------

2023-04-11T11:14:12.467Z Install : ncd-red-wireless 1.6.16

2023-04-11T11:14:12.475Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict ncd-red-wireless@1.6.16

2023-04-11T11:14:15.493Z [err] npm

2023-04-11T11:14:15.495Z [err] WARN config production Use `--omit=dev` instead.

2023-04-11T11:14:31.898Z [err] npm

2023-04-11T11:14:31.898Z [err] ERR! code 1

2023-04-11T11:14:31.899Z [err] npm ERR!

2023-04-11T11:14:31.899Z [err] path C:\Users\USER\.node-red\node_modules\@serialport\bindings

2023-04-11T11:14:31.904Z [err] npm

2023-04-11T11:14:31.904Z [err] ERR!

2023-04-11T11:14:31.905Z [err] command failed

2023-04-11T11:14:31.905Z [err] npm

2023-04-11T11:14:31.905Z [err] ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2023-04-11T11:14:31.905Z [err] npm

2023-04-11T11:14:31.905Z [err] ERR! gyp info it worked if it ends with ok

2023-04-11T11:14:31.905Z [err] npm ERR! gyp info using node-gyp@9.3.1

2023-04-11T11:14:31.905Z [err] npm ERR! gyp info using node@19.8.1 | win32 | x64

2023-04-11T11:14:31.905Z [err] npm ERR!

2023-04-11T11:14:31.905Z [err] gyp info find Python using Python version 3.11.2 found at "C:\Python311\python.exe"

2023-04-11T11:14:31.905Z [err] npm ERR! gyp ERR! find VS

2023-04-11T11:14:31.905Z [err] npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config

2023-04-11T11:14:31.905Z [err] npm ERR!

2023-04-11T11:14:31.905Z [err] gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt

2023-04-11T11:14:31.905Z [err] npm ERR! gyp ERR! find VS checking VS2019 (16.11.33423.256) found at:

2023-04-11T11:14:31.905Z [err] npm

2023-04-11T11:14:31.906Z [err] ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"

2023-04-11T11:14:31.906Z [err] npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"

2023-04-11T11:14:31.906Z [err] npm

2023-04-11T11:14:31.906Z [err] ERR! gyp ERR! find VS - found VC++ toolset: v142

2023-04-11T11:14:31.906Z [err] npm ERR!

2023-04-11T11:14:31.906Z [err] gyp ERR! find VS - missing any Windows SDK

2023-04-11T11:14:31.906Z [err] npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use

2023-04-11T11:14:31.906Z [err] npm

2023-04-11T11:14:31.906Z [err] ERR! gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18

2023-04-11T11:14:31.906Z [err] npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8

2023-04-11T11:14:31.906Z [err] npm

2023-04-11T11:14:31.906Z [err] ERR! gyp ERR! find VS

2023-04-11T11:14:31.906Z [err] npm ERR!

2023-04-11T11:14:31.906Z [err] gyp ERR! find VS **************************************************************

2023-04-11T11:14:31.906Z [err] npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio

2023-04-11T11:14:31.906Z [err] npm ERR!

2023-04-11T11:14:31.906Z [err] gyp ERR! find VS including the "Desktop development with C++" workload.

2023-04-11T11:14:31.906Z [err] npm ERR! gyp ERR! find VS For more information consult the documentation at:

2023-04-11T11:14:31.906Z [err] npm

2023-04-11T11:14:31.906Z [err] ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows

2023-04-11T11:14:31.906Z [err] npm ERR!

2023-04-11T11:14:31.906Z [err] gyp ERR! find VS **************************************************************

2023-04-11T11:14:31.906Z [err] npm ERR!

2023-04-11T11:14:31.906Z [err] gyp ERR! find VS

2023-04-11T11:14:31.906Z [err] npm

2023-04-11T11:14:31.906Z [err] ERR! gyp ERR! configure error

2023-04-11T11:14:31.906Z [err] npm ERR!

2023-04-11T11:14:31.906Z [err] gyp ERR! stack Error: Could not find any Visual Studio installation to use

2023-04-11T11:14:31.906Z [err] npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:369:14)

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14

2023-04-11T11:14:31.907Z [err] npm ERR!

2023-04-11T11:14:31.907Z [err] gyp ERR! stack at VisualStudioFinder.findVisualStudio2015 (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:353:14)

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:67:12

2023-04-11T11:14:31.907Z [err] npm

2023-04-11T11:14:31.907Z [err] ERR! gyp ERR! stack at VisualStudioFinder.parseData (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:237:5)

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! stack at C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:143:14

2023-04-11T11:14:31.907Z [err] npm

2023-04-11T11:14:31.907Z [err] ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:411:7)

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:512:28)

2023-04-11T11:14:31.907Z [err] npm

2023-04-11T11:14:31.907Z [err] ERR! gyp ERR! System Windows_NT 10.0.19044

2023-04-11T11:14:31.907Z [err] npm ERR! gyp 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"

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! cwd C:\Users\USER\.node-red\node_modules\@serialport\bindings

2023-04-11T11:14:31.907Z [err] npm ERR!

2023-04-11T11:14:31.907Z [err] gyp ERR! node -v v19.8.1

2023-04-11T11:14:31.907Z [err] npm ERR! gyp ERR! node-gyp -v v9.3.1

2023-04-11T11:14:31.907Z [err] npm

2023-04-11T11:14:31.907Z [err] ERR! gyp ERR! not ok

2023-04-11T11:14:31.911Z [err]

2023-04-11T11:14:31.911Z [err] npm ERR! A complete log of this run can be found in: C:\Users\USER\AppData\Local\npm-cache\_logs\2023-04-11T11_14_15_447Z-debug-0.log

2023-04-11T11:14:31.959Z rc=1

i just shared with you the error pop up when installing the wireless sensor

Here is the relevant message from the log:

so i have to download visual studio?

Yes, that is what the error is saying.

The node probably includes some binary components that need to be built as part of the install.

okay I'm doing that now, if i need anything else i will recert back immediately. thanks for your quick response. i hope this helpful. i have been on it for hours and seems no headways.

I notice you are also using an unsupported version of nodejs (v19). You should drop back to v18.
However, you may still have problems as I can't get it to install (on Ubuntu) with nodejs 18. I think it is pulling in an obsolete version of the serialport package. Will not install with nodejs v18 · Issue #26 · ncd-io/ncd-red-wireless · GitHub

I'm actually using. node red version 3.0.2

I was not talking about node-red but about nodejs (also known as node).

You have installed version 19.8.1

No, not necessary.

Simply re-install NodeJS (V18 LTS is recommended) and ensure you tick the checkbox to include the "necessary tools"

image

please can you help with the link?


check the image attached, is that the version i needed to download marked blue.

i have installed version 18 but the problem persist

Did you select the checkbox to install the build tools as shown earlier?

If yes, are you sure it is the same error as previously?

i checked the box

Show us the log.

Remember to click the code </> button before posting it into a reply

Please try and answer all questions.