Errores al instalar los componentes de node.js

errores al instalar los componentes, me sale error en la instalacion de node.js, alguien tiene idea de como solucionarlos?

[edited to add translation]
errors when installing the components, I get an error in the installation of node.js, does anyone have any idea how to solve them?


If you want help you need to provide more information. Remember, you are the only one that can see what you are doing.

Errors installing what components?
Show us what you did and the log with the errors.

solo puedo enviar dos imágenes, pero ahi esta me sale error en la instalacion de phyton

C:\Users\YOSEP>node-red
25 May 20:29:50 - [info]

Welcome to Node-RED

25 May 20:29:50 - [info] Node-RED version: v1.3.5
25 May 20:29:50 - [info] Node.js version: v14.17.0
25 May 20:29:50 - [info] Windows_NT 10.0.19042 x64 LE
25 May 20:29:51 - [info] Loading palette nodes
25 May 20:29:52 - [info] Settings file : C:\Users\YOSEP.node-red\settings.js
25 May 20:29:52 - [info] Context store : 'default' [module=memory]
25 May 20:29:52 - [info] User directory : \Users\YOSEP.node-red
25 May 20:29:52 - [warn] Projects disabled : editorTheme.projects.enabled=false
25 May 20:29:52 - [info] Flows file : \Users\YOSEP.node-red\flows_LAPTOP-JHOSEPH.json
25 May 20:29:52 - [info] Creating new flow file
25 May 20:29:52 - [warn]


Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.

25 May 20:29:52 - [info] Starting flows
25 May 20:29:52 - [info] Started flows
25 May 20:29:52 - [info] Server now running at http://127.0.0.1:1880/

hasta aqui todo bien pero quiero instalar 'node-red-contrib-modbus'

image

pero me sale error

image

y en el cmd me sale el siguiente código

25 May 20:29:52 - [info] Starting flows
25 May 20:29:52 - [info] Started flows
25 May 20:29:52 - [info] Server now running at http://127.0.0.1:1880/
25 May 20:33:00 - [info] Installing module: node-red-contrib-modbus, version: 5.14.0
25 May 20:33:18 - [warn] Installation of module node-red-contrib-modbus failed:
25 May 20:33:18 - [warn] ------------------------------------------
25 May 20:33:18 - [warn] prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=win32)
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS GitHub - nodejs/node-gyp: Node.js native addon build tool
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:326:5)
gyp ERR! stack at ChildProcess.emit (events.js:376:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1055:16)
gyp ERR! System Windows_NT 10.0.19042
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"
gyp ERR! cwd C:\Users\YOSEP.node-red\node_modules@serialport\bindings
gyp ERR! node -v v14.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @serialport/bindings@9.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @serialport/bindings@9.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\YOSEP\AppData\Roaming\npm-cache_logs\2021-05-26T01_33_18_829Z-debug.log

25 May 20:33:18 - [warn] ------------------------------------------
Error: Install failed
at C:\Users\YOSEP\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\registry\lib\installer.js:214:23
at processTicksAndRejections (internal/process/task_queues.js:95:5)
25 May 20:33:18 - [error] Error: Install failed

alguna solución por favor?

Here is a similar thread with a solution:

no es la solución que buscaba, ya tengo instalado el node-red en mi pc y que al instalar el 'node-red-contrib-modbus' me sale error como hago para instalar ese componente

If you look at the last two posts it tells you to install the windows build tools with administrative rights. After that is done you can then get to the .node-red folder
and then execute

npm install node-red-contrib-modbus --unsafe-perm --build-from-source

El error se debe a que el node-red me funcionaba normal solo que he conectado nodos en diferentes paletas o que no corresponden y al momento de darle deploy me no me quiso cargar en la pagina de node red y la ejecución del cmd que se estaba ejecutando en función al node res se finalizo y termino la ejecución que se debe hacer en ese caso?


The error is due to the fact that the node-red worked normal for me, only that I have connected nodes in different palettes or that do not correspond and when I gave it deploy it did not want to load me on the node red page and the execution of the cmd that was being Executing in function to node res, the execution ended and ended, what should be done in that case?

  1. Have you installed the windows build tools with administrative rights?
  2. did you use a CLI to change to the .node-red folder and issue the tmp command?

If so, post the results.

uve que formatear la laptop y de nuevo instalar el node-red y me funciono al instalar el 'node-red-contrib-modbus', pero ahora he instalado el "node-red-contrib-bacnet", me sale en el cmd lo siguiente


2021-05-29T17:55:07.702Z Install : node-red-contrib-bacnet 0.2.4


2021-05-29T17:55:07.729Z Install : node-red-contrib-bacnet 0.2.4

2021-05-29T17:55:07.737Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-bacnet@0.2.4
2021-05-29T17:55:24.158Z [err] npm
2021-05-29T17:55:24.158Z [err] WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · visionmedia/debug · GitHub)
2021-05-29T17:55:27.511Z [out]
2021-05-29T17:55:27.511Z [out] > node-red-contrib-bacnet@0.2.4 postinstall C:\Users\Yosep.node-red\node_modules\node-red-contrib-bacnet
2021-05-29T17:55:27.511Z [out] > node ./supporter.js
2021-05-29T17:55:27.511Z [out]
2021-05-29T17:55:27.786Z [out] e[96me[1mThank you for using our contribution!e[96me[1m
2021-05-29T17:55:27.786Z [out] e[0me[96mIf you rely on this package, please consider supporting our open source work:e[22me[39m
2021-05-29T17:55:27.786Z [out] > e[94mhttps://osi.bianco-royal.com/e[0m
2021-05-29T17:55:27.786Z [out]
2021-05-29T17:55:27.786Z [out]
2021-05-29T17:55:28.057Z [out] + node-red-contrib-bacnet@0.2.4
2021-05-29T17:55:28.057Z [out] added 6 packages from 10 contributors in 10.747s
2021-05-29T17:55:28.192Z rc=0

y creo que algunos pluguins no se han instalado solo tres se han instalado .
image

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