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?
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'
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
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
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?
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