Manage Palette Node install error

Hi,
I can't install modules from Manage Palette . When I check the Event Log, there seems to be an error with Python. Does anyone have any ideas? Thank you in advance for your help.

Hi @reymat

Without details of the actual error, or information about what node you were trying to install, there is very little help we can provide.

Hi,
I'm trying to install "node-red-node-serialport", but I tried another module and I have the same problem.
Here is the log


2020-07-16T14:03:01.801Z Install : node-red-node-serialport 0.10.3

2020-07-16T14:03:02.121Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-node-serialport@0.10.3
2020-07-16T14:03:06.345Z [out]
2020-07-16T14:03:06.345Z [out] > @serialport/bindings@8.0.8 install C:\Users\xxxx.node-red\node_modules@serialport\bindings
2020-07-16T14:03:06.345Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2020-07-16T14:03:06.345Z [out]
2020-07-16T14:03:07.281Z [err] prebuild-install
2020-07-16T14:03:07.281Z [err] WARN install No prebuilt binaries found (target=14.5.0 runtime=node arch=x64 libc= platform=win32)
2020-07-16T14:03:07.298Z [out]
2020-07-16T14:03:07.298Z [out] C:\Users\xxxx.node-red\node_modules@serialport\bindings>if not defined npm_config_node_gyp (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-07-16T14:03:08.757Z [err] gyp
2020-07-16T14:03:08.758Z [err] ERR! find VS
2020-07-16T14:03:08.758Z [err] gyp ERR!
2020-07-16T14:03:08.758Z [err] find VS msvs_version not set from command line or npm config
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
2020-07-16T14:03:08.758Z [err] gyp
2020-07-16T14:03:08.758Z [err] ERR! find VS looking for Visual Studio 2015
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS - not found
2020-07-16T14:03:08.758Z [err] gyp ERR!
2020-07-16T14:03:08.758Z [err] find VS not looking for VS2013 as it is only supported up to Node.js 8
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS **************************************************************
2020-07-16T14:03:08.758Z [err] gyp ERR!
2020-07-16T14:03:08.758Z [err] find VS You need to install the latest version of Visual Studio
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS including the "Desktop development with C++" workload.
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS For more information consult the documentation at:
2020-07-16T14:03:08.758Z [err] gyp
2020-07-16T14:03:08.758Z [err] ERR! find VS https://github.com/nodejs/node-gyp#on-windows
2020-07-16T14:03:08.758Z [err] gyp ERR! find VS **************************************************************
2020-07-16T14:03:08.758Z [err] gyp ERR!
2020-07-16T14:03:08.758Z [err] find VS
2020-07-16T14:03:08.760Z [err] gyp
2020-07-16T14:03:08.760Z [err] ERR! configure error
2020-07-16T14:03:08.760Z [err] gyp ERR!
2020-07-16T14:03:08.760Z [err] stack Error: Could not find any Visual Studio installation to use
2020-07-16T14:03:08.760Z [err] gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
2020-07-16T14:03:08.760Z [err] gyp
2020-07-16T14:03:08.760Z [err] ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
2020-07-16T14:03:08.760Z [err] gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
2020-07-16T14:03:08.760Z [err] gyp ERR!
2020-07-16T14:03:08.760Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
2020-07-16T14:03:08.760Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
2020-07-16T14:03:08.760Z [err] gyp
2020-07-16T14:03:08.760Z [err] ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
2020-07-16T14:03:08.760Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
2020-07-16T14:03:08.760Z [err] gyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5)
2020-07-16T14:03:08.760Z [err] gyp ERR! stack
2020-07-16T14:03:08.760Z [err] at ChildProcess.emit (events.js:314:20)
2020-07-16T14:03:08.760Z [err] gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
2020-07-16T14:03:08.760Z [err] gyp ERR!
2020-07-16T14:03:08.760Z [err] System Windows_NT 10.0.18362
2020-07-16T14:03:08.760Z [err] gyp 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-07-16T14:03:08.760Z [err] gyp ERR! cwd C:\Users\xxxx.node-red\node_modules@serialport\bindings
2020-07-16T14:03:08.760Z [err] gyp ERR!
2020-07-16T14:03:08.760Z [err] node -v v14.5.0
2020-07-16T14:03:08.760Z [err] gyp ERR! node-gyp -v v5.1.0
2020-07-16T14:03:08.761Z [err] gyp ERR! not ok
2020-07-16T14:03:09.053Z [err] npm ERR!
2020-07-16T14:03:09.053Z [err] code ELIFECYCLE
2020-07-16T14:03:09.053Z [err] npm ERR! errno 1
2020-07-16T14:03:09.054Z [err] npm
2020-07-16T14:03:09.054Z [err] ERR! @serialport/bindings@8.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2020-07-16T14:03:09.054Z [err] npm ERR! Exit status 1
2020-07-16T14:03:09.054Z [err] npm
2020-07-16T14:03:09.054Z [err] ERR!
2020-07-16T14:03:09.054Z [err] npm ERR!
2020-07-16T14:03:09.054Z [err] Failed at the @serialport/bindings@8.0.8 install script.
2020-07-16T14:03:09.054Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-07-16T14:03:09.064Z [err]
2020-07-16T14:03:09.064Z [err] npm ERR! A complete log of this run can be found in:
2020-07-16T14:03:09.064Z [err] npm ERR! C:\Users\xxxx\AppData\Roaming\npm-cache_logs\2020-07-16T14_03_09_057Z-debug.log
2020-07-16T14:03:09.093Z rc=1

as the error log reports

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

It can't compile the serialport native code as you don't have VisualStudio installed. However this is because there is no prebuilt version available as you are running on Node14. If you used nodejs 12 then the prebuilt version would probably install without needing to be compiled.

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