# Errores al instalar los componentes de node.js

**URL:** <https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244>\
**Category:** Developing Nodes\
**Created:** [26 May 2021 00:23 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244 "2021-05-26T00:23:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yosep](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yosep](https://discourse.nodered.org/u/yosep)\
**Post date:** [26 May 2021 00:23 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/1 "2021-05-26T00:23:59Z")

</div>

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?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/6/0698c8b2724a60b8e27052df430587b5aea1c2af.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c4ab4412bbf330e700a03f776fce109a6a9c7a2b.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 May 2021 00:41 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/2 "2021-05-26T00:41:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yosep](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yosep](https://discourse.nodered.org/u/yosep)\
**Post date:** [26 May 2021 00:55 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/3 "2021-05-26T00:55:05Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/5/a52fb2507e98a26fb426288b76d89a77a6172a97.png)

---

<div class="post-metadata">

**Author:** ![yosep](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yosep](https://discourse.nodered.org/u/yosep)\
**Post date:** [26 May 2021 01:33 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/4 "2021-05-26T01:33:30Z")

</div>

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/](http://127.0.0.1:1880/)

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

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/b/5b49342c951a209537c893e2f2ae2203baba77f5.png)

---

<div class="post-metadata">

**Author:** ![yosep](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yosep](https://discourse.nodered.org/u/yosep)\
**Post date:** [26 May 2021 01:37 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/5 "2021-05-26T01:37:53Z")

</div>

pero me sale error

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/188b1f28e6408f6bba9be6013563ce31ca2a766f.png)

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/](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](https://github.com/nodejs/node-gyp#on-windows)  
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?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 May 2021 08:53 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/6 "2021-05-26T08:53:47Z")

</div>

Here is a similar thread with a solution:

> [@Installation of node-red-contrib-modbus fails](https://discourse.nodered.org/t/installation-of-node-red-contrib-modbus-fails/37873/8):
>
> Hi Steve, I have tried it again: Installing the windows build tools with administrative rights... and then executing 'npm install -g node-red-contrib.modbus --unsafe-perm --build-from-source' ...I have been able to load the flow again. Thank you very much! Best regards, Jaume Cañas

---

<div class="post-metadata">

**Author:** ![yosep](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yosep](https://discourse.nodered.org/u/yosep)\
**Post date:** [26 May 2021 13:53 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/7 "2021-05-26T13:53:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 May 2021 14:01 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/8 "2021-05-26T14:01:01Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![yosep](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yosep](https://discourse.nodered.org/u/yosep)\
**Post date:** [27 May 2021 04:24 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/9 "2021-05-27T04:24:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 May 2021 08:43 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/10 "2021-05-27T08:43:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yosep](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yosep](https://discourse.nodered.org/u/yosep)\
**Post date:** [29 May 2021 21:44 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/11 "2021-05-29T21:44:31Z")

</div>

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](https://github.com/visionmedia/debug/issues/797))  
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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c240b14b4bca208201235bf59e842392b13944ea.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 July 2021 21:45 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244/12 "2021-07-28T21:45:28Z")

</div>

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