Cannot install node-red-contrib-gpio

A lot of errors,what's to be done?Thank you

2019-10-07T01:06:38.134Z 安装 : node-red-contrib-gpio 0.14.0

2019-10-07T01:07:18.767Z [out]
2019-10-07T01:07:18.767Z [out] > serialport@6.0.5 install C:\Users\Administrator.node-red\node_modules\johnny-five\node_modules\firmata\node_modules\serialport
2019-10-07T01:07:18.767Z [out] > prebuild-install || node-gyp rebuild
2019-10-07T01:07:18.767Z [out]
2019-10-07T01:07:20.959Z [err] prebuild-install
2019-10-07T01:07:20.959Z [err] WARN install No prebuilt binaries found (target=12.11.1 runtime=node arch=x64 platform=win32)
2019-10-07T01:07:20.996Z [out]
2019-10-07T01:07:20.996Z [out] C:\Users\Administrator.node-red\node_modules\johnny-five\node_modules\firmata\node_modules\serialport>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
2019-10-07T01:07:20.997Z [out] (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
2019-10-07T01:07:33.667Z [err] gyp
2019-10-07T01:07:33.667Z [err] ERR! find VS
2019-10-07T01:07:33.667Z [err]
2019-10-07T01:07:33.667Z [err] gyp ERR!
2019-10-07T01:07:33.667Z [err] find VS
2019-10-07T01:07:33.667Z [err] msvs_version not set from command line or npm config
2019-10-07T01:07:33.667Z [err] gyp ERR!
2019-10-07T01:07:33.668Z [err] find VS VCINSTALLDIR not set, not running in VS Command Prompt
2019-10-07T01:07:33.668Z [err] gyp ERR!
2019-10-07T01:07:33.668Z [err] find VS could not use PowerShell to find Visual Studio 2017 or newer
2019-10-07T01:07:33.668Z [err] gyp
2019-10-07T01:07:33.668Z [err] ERR! find VS
2019-10-07T01:07:33.668Z [err] looking for Visual Studio 2015
2019-10-07T01:07:33.668Z [err] gyp
2019-10-07T01:07:33.668Z [err] ERR! find VS - not found
2019-10-07T01:07:33.668Z [err] gyp ERR!
2019-10-07T01:07:33.668Z [err] find VS not looking for VS2013 as it is only supported up to Node.js 8
2019-10-07T01:07:33.668Z [err] gyp
2019-10-07T01:07:33.668Z [err] ERR!
2019-10-07T01:07:33.668Z [err] find VS
2019-10-07T01:07:33.668Z [err] gyp ERR!
2019-10-07T01:07:33.668Z [err] find VS **************************************************************
2019-10-07T01:07:33.668Z [err] gyp ERR!
2019-10-07T01:07:33.668Z [err] find VS
2019-10-07T01:07:33.669Z [err] You need to install the latest version of Visual Studio
2019-10-07T01:07:33.669Z [err] gyp
2019-10-07T01:07:33.669Z [err] ERR! find VS
2019-10-07T01:07:33.669Z [err] including the "Desktop development with C++" workload.
2019-10-07T01:07:33.669Z [err] gyp
2019-10-07T01:07:33.669Z [err] ERR! find VS
2019-10-07T01:07:33.669Z [err] For more information consult the documentation at:
2019-10-07T01:07:33.669Z [err] gyp
2019-10-07T01:07:33.669Z [err] ERR! find VS
2019-10-07T01:07:33.669Z [err] h ttps://github.com/nodejs/node-gyp#on-windows
2019-10-07T01:07:33.669Z [err] gyp
2019-10-07T01:07:33.669Z [err] ERR! find VS
2019-10-07T01:07:33.669Z [err] **************************************************************
2019-10-07T01:07:33.669Z [err] gyp
2019-10-07T01:07:33.669Z [err] ERR! find VS
2019-10-07T01:07:33.669Z [err]
2019-10-07T01:07:33.670Z [err] gyp
2019-10-07T01:07:33.670Z [err]
2019-10-07T01:07:33.670Z [err] ERR!
2019-10-07T01:07:33.671Z [err]
2019-10-07T01:07:33.671Z [err] configure error
2019-10-07T01:07:33.671Z [err]
2019-10-07T01:07:33.671Z [err] gyp
2019-10-07T01:07:33.671Z [err]
2019-10-07T01:07:33.671Z [err] ERR!
2019-10-07T01:07:33.671Z [err]
2019-10-07T01:07:33.671Z [err] stack
2019-10-07T01:07:33.671Z [err] Error: Could not find any Visual Studio installation to use
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.672Z [err]
2019-10-07T01:07:33.672Z [err] ERR!
2019-10-07T01:07:33.672Z [err] stack
2019-10-07T01:07:33.672Z [err] at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.672Z [err] ERR! stack
2019-10-07T01:07:33.672Z [err] at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.672Z [err] ERR! stack
2019-10-07T01:07:33.672Z [err] at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:344:14)
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.672Z [err] ERR! stack
2019-10-07T01:07:33.672Z [err] at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.672Z [err] ERR! stack
2019-10-07T01:07:33.672Z [err] at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:365:16
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.672Z [err] ERR! stack
2019-10-07T01:07:33.672Z [err] at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.672Z [err] ERR! stack
2019-10-07T01:07:33.672Z [err] at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
2019-10-07T01:07:33.672Z [err] gyp
2019-10-07T01:07:33.673Z [err] ERR! stack
2019-10-07T01:07:33.673Z [err] at ChildProcess.exithandler (child_process.js:302:5)
2019-10-07T01:07:33.673Z [err] gyp
2019-10-07T01:07:33.673Z [err] ERR! stack
2019-10-07T01:07:33.673Z [err] at ChildProcess.emit (events.js:210:5)
2019-10-07T01:07:33.673Z [err] gyp
2019-10-07T01:07:33.673Z [err] ERR! stack
2019-10-07T01:07:33.673Z [err] at maybeClose (internal/child_process.js:1021:16)
2019-10-07T01:07:33.673Z [err] gyp
2019-10-07T01:07:33.673Z [err] ERR!
2019-10-07T01:07:33.673Z [err] System Windows_NT 6.1.7601
2019-10-07T01:07:33.673Z [err] gyp
2019-10-07T01:07:33.673Z [err] ERR! command
2019-10-07T01:07:33.674Z [err] "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
2019-10-07T01:07:33.674Z [err] gyp ERR! cwd
2019-10-07T01:07:33.674Z [err] C:\Users\Administrator.node-red\node_modules\johnny-five\node_modules\firmata\node_modules\serialport
2019-10-07T01:07:33.674Z [err] gyp
2019-10-07T01:07:33.674Z [err] ERR!
2019-10-07T01:07:33.674Z [err] node -v v12.11.1
2019-10-07T01:07:33.674Z [err] gyp
2019-10-07T01:07:33.674Z [err] ERR!
2019-10-07T01:07:33.674Z [err] node-gyp -v v5.0.3
2019-10-07T01:07:33.674Z [err] gyp ERR!
2019-10-07T01:07:33.674Z [err] not ok
2019-10-07T01:07:33.696Z [out]
2019-10-07T01:07:33.696Z [out] > serialport@6.2.2 install C:\Users\Administrator.node-red\node_modules\johnny-five\node_modules\serialport
2019-10-07T01:07:33.696Z [out] > prebuild-install || node-gyp rebuild
2019-10-07T01:07:33.696Z [out]
2019-10-07T01:07:36.678Z [err] prebuild-install
2019-10-07T01:07:36.678Z [err] WARN
2019-10-07T01:07:36.679Z [err] install No prebuilt binaries found (target=12.11.1 runtime=node arch=x64 platform=win32)
2019-10-07T01:07:36.715Z [out]
2019-10-07T01:07:36.715Z [out] C:\Users\Administrator.node-red\node_modules\johnny-five\node_modules\serialport>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 )
2019-10-07T01:07:36.715Z [out] else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
2019-10-07T01:07:38.855Z [err] gyp
2019-10-07T01:07:38.855Z [err]
2019-10-07T01:07:38.855Z [err] ERR!
2019-10-07T01:07:38.855Z [err] find VS
2019-10-07T01:07:38.855Z [err] gyp
2019-10-07T01:07:38.855Z [err] ERR!
2019-10-07T01:07:38.855Z [err] find VS
2019-10-07T01:07:38.855Z [err] msvs_version not set from command line or npm config
2019-10-07T01:07:38.855Z [err] gyp ERR!
2019-10-07T01:07:38.855Z [err] find VS
2019-10-07T01:07:38.855Z [err] VCINSTALLDIR not set, not running in VS Command Prompt
2019-10-07T01:07:38.855Z [err] gyp
2019-10-07T01:07:38.855Z [err] ERR! find VS
2019-10-07T01:07:38.855Z [err] could not use PowerShell to find Visual Studio 2017 or newer
2019-10-07T01:07:38.855Z [err] gyp
2019-10-07T01:07:38.855Z [err] ERR! find VS
2019-10-07T01:07:38.855Z [err] looking for Visual Studio 2015
2019-10-07T01:07:38.855Z [err] gyp
2019-10-07T01:07:38.855Z [err] ERR!
2019-10-07T01:07:38.856Z [err] find VS - not found
2019-10-07T01:07:38.856Z [err] gyp
2019-10-07T01:07:38.856Z [err] ERR!
2019-10-07T01:07:38.856Z [err] find VS not looking for VS2013 as it is only supported up to Node.js 8
2019-10-07T01:07:38.856Z [err] gyp
2019-10-07T01:07:38.856Z [err] ERR!
2019-10-07T01:07:38.856Z [err] find VS
2019-10-07T01:07:38.856Z [err] gyp
2019-10-07T01:07:38.856Z [err] ERR!
2019-10-07T01:07:38.856Z [err] find VS **************************************************************
2019-10-07T01:07:38.856Z [err] gyp
2019-10-07T01:07:38.856Z [err] ERR! find VS
2019-10-07T01:07:38.856Z [err] You need to install the latest version of Visual Studio
2019-10-07T01:07:38.856Z [err] gyp
2019-10-07T01:07:38.856Z [err] ERR! find VS
2019-10-07T01:07:38.856Z [err] including the "Desktop development with C++" workload.
2019-10-07T01:07:38.856Z [err] gyp
2019-10-07T01:07:38.856Z [err] ERR! find VS For more information consult the documentation at:
2019-10-07T01:07:38.856Z [err] gyp ERR!
2019-10-07T01:07:38.856Z [err] find VS https://github.com/nodejs/node-gyp#on-windows
2019-10-07T01:07:38.856Z [err] gyp ERR!
2019-10-07T01:07:38.856Z [err] find VS **************************************************************
2019-10-07T01:07:38.856Z [err] gyp ERR!
2019-10-07T01:07:38.856Z [err] find VS
2019-10-07T01:07:38.858Z [err] gyp
2019-10-07T01:07:38.858Z [err] ERR! configure error
2019-10-07T01:07:38.858Z [err] gyp
2019-10-07T01:07:38.858Z [err] ERR!
2019-10-07T01:07:38.858Z [err] stack Error: Could not find any Visual Studio installation to use
2019-10-07T01:07:38.858Z [err] gyp
2019-10-07T01:07:38.858Z [err] ERR!
2019-10-07T01:07:38.858Z [err] stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
2019-10-07T01:07:38.858Z [err] gyp
2019-10-07T01:07:38.858Z [err] ERR!
2019-10-07T01:07:38.858Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
2019-10-07T01:07:38.858Z [err] gyp
2019-10-07T01:07:38.858Z [err] ERR!
2019-10-07T01:07:38.858Z [err] stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:344:14)
2019-10-07T01:07:38.858Z [err] gyp
2019-10-07T01:07:38.858Z [err] ERR!
2019-10-07T01:07:38.858Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
2019-10-07T01:07:38.858Z [err] gyp
2019-10-07T01:07:38.858Z [err] ERR!
2019-10-07T01:07:38.859Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:365:16
2019-10-07T01:07:38.859Z [err] gyp
2019-10-07T01:07:38.859Z [err] ERR!
2019-10-07T01:07:38.859Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
2019-10-07T01:07:38.859Z [err] gyp
2019-10-07T01:07:38.859Z [err] ERR!
2019-10-07T01:07:38.859Z [err] stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
2019-10-07T01:07:38.859Z [err] gyp
2019-10-07T01:07:38.859Z [err] ERR!
2019-10-07T01:07:38.859Z [err] stack at ChildProcess.exithandler (child_process.js:302:5)
2019-10-07T01:07:38.859Z [err] gyp ERR!
2019-10-07T01:07:38.859Z [err] stack at ChildProcess.emit (events.js:210:5)
2019-10-07T01:07:38.859Z [err] gyp ERR!
2019-10-07T01:07:38.859Z [err] stack
2019-10-07T01:07:38.859Z [err] at maybeClose (internal/child_process.js:1021:16)
2019-10-07T01:07:38.860Z [err] gyp
2019-10-07T01:07:38.860Z [err] ERR!
2019-10-07T01:07:38.860Z [err] System Windows_NT 6.1.7601
2019-10-07T01:07:38.860Z [err] gyp ERR!
2019-10-07T01:07:38.860Z [err] command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
2019-10-07T01:07:38.860Z [err] gyp
2019-10-07T01:07:38.860Z [err] ERR!
2019-10-07T01:07:38.860Z [err] cwd C:\Users\Administrator.node-red\node_modules\johnny-five\node_modules\serialport
2019-10-07T01:07:38.860Z [err] gyp ERR!
2019-10-07T01:07:38.860Z [err] node -v v12.11.1
2019-10-07T01:07:38.860Z [err] gyp
2019-10-07T01:07:38.860Z [err] ERR! node-gyp -v
2019-10-07T01:07:38.860Z [err] v5.0.3
2019-10-07T01:07:38.860Z [err] gyp
2019-10-07T01:07:38.860Z [err] ERR!
2019-10-07T01:07:38.860Z [err] not ok
2019-10-07T01:07:38.877Z [out]
2019-10-07T01:07:38.877Z [out] > serialport@6.0.5 install C:\Users\Administrator.node-red\node_modules\node-red-contrib-gpio\node_modules\firmata\node_modules\serialport
2019-10-07T01:07:38.877Z [out] > prebuild-install || node-gyp rebuild
2019-10-07T01:07:38.877Z [out]
2019-10-07T01:07:43.073Z [err] prebuild-install
2019-10-07T01:07:43.073Z [err] WARN install No prebuilt binaries found (target=12.11.1 runtime=node arch=x64 platform=win32)
2019-10-07T01:07:43.106Z [out]
2019-10-07T01:07:43.106Z [out] C:\Users\Administrator.node-red\node_modules\node-red-contrib-gpio\node_modules\firmata\node_modules\serialport>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
2019-10-07T01:07:43.106Z [out] (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
2019-10-07T01:07:45.045Z [err] gyp
2019-10-07T01:07:45.045Z [err]
2019-10-07T01:07:45.045Z [err] ERR!
2019-10-07T01:07:45.045Z [err] find VS
2019-10-07T01:07:45.045Z [err]
2019-10-07T01:07:45.045Z [err] gyp
2019-10-07T01:07:45.045Z [err]
2019-10-07T01:07:45.045Z [err] ERR!
2019-10-07T01:07:45.045Z [err]
2019-10-07T01:07:45.046Z [err] find VS
2019-10-07T01:07:45.046Z [err] msvs_version not set from command line or npm config
2019-10-07T01:07:45.046Z [err] gyp
2019-10-07T01:07:45.046Z [err] ERR!
2019-10-07T01:07:45.046Z [err] find VS
2019-10-07T01:07:45.046Z [err] VCINSTALLDIR not set, not running in VS Command Prompt
2019-10-07T01:07:45.046Z [err] gyp
2019-10-07T01:07:45.046Z [err] ERR!
2019-10-07T01:07:45.046Z [err] find VS could not use PowerShell to find Visual Studio 2017 or newer
2019-10-07T01:07:45.046Z [err] gyp ERR!
2019-10-07T01:07:45.046Z [err] find VS
2019-10-07T01:07:45.046Z [err] looking for Visual Studio 2015
2019-10-07T01:07:45.046Z [err] gyp
2019-10-07T01:07:45.046Z [err] ERR!
2019-10-07T01:07:45.046Z [err] find VS - not found
2019-10-07T01:07:45.046Z [err] gyp
2019-10-07T01:07:45.046Z [err] ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
2019-10-07T01:07:45.046Z [err] gyp
2019-10-07T01:07:45.050Z [err] ERR! find VS
2019-10-07T01:07:45.050Z [err] gyp ERR! find VS **************************************************************
2019-10-07T01:07:45.050Z [err] gyp ERR! find VS You need to install the latest version of Visual Studio
2019-10-07T01:07:45.050Z [err] gyp ERR! find VS including the "Desktop development with C++" workload.
2019-10-07T01:07:45.050Z [err] gyp ERR! find VS For more information consult the documentation at:
2019-10-07T01:07:45.050Z [err] gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
2019-10-07T01:07:45.050Z [err] gyp ERR! find VS **************************************************************
2019-10-07T01:07:45.050Z [err] gyp ERR! find VS
2019-10-07T01:07:45.050Z [err] gyp ERR! configure error
2019-10-07T01:07:45.050Z [err] gyp ERR! stack Error: Could not find any Visual Studio installation to use
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:344:14)
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:365:16
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at ChildProcess.exithandler (child_process.js:302:5)
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at ChildProcess.emit (events.js:210:5)
2019-10-07T01:07:45.050Z [err] gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
2019-10-07T01:07:45.050Z [err] gyp ERR! System Windows_NT 6.1.7601
2019-10-07T01:07:45.050Z [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"
2019-10-07T01:07:45.050Z [err] gyp ERR! cwd C:\Users\Administrator.node-red\node_modules\node-red-contrib-gpio\node_modules\firmata\node_modules\serialport
2019-10-07T01:07:45.050Z [err] gyp ERR! node -v v12.11.1
2019-10-07T01:07:45.050Z [err] gyp ERR! node-gyp -v v5.0.3
2019-10-07T01:07:45.050Z [err] gyp ERR! not ok
2019-10-07T01:07:45.539Z [err] npm
2019-10-07T01:07:45.540Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport@6.0.5 (node_modules\johnny-five\node_modules\firmata\node_modules\serialport):
2019-10-07T01:07:45.540Z [err] npm
2019-10-07T01:07:45.540Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport@6.0.5 install: prebuild-install || node-gyp rebuild
2019-10-07T01:07:45.540Z [err] npm WARN
2019-10-07T01:07:45.540Z [err] optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2019-10-07T01:07:45.540Z [err] npm
2019-10-07T01:07:45.540Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport@6.2.2 (node_modules\johnny-five\node_modules\serialport):
2019-10-07T01:07:45.540Z [err] npm
2019-10-07T01:07:45.540Z [err] WARN
2019-10-07T01:07:45.540Z [err] optional SKIPPING OPTIONAL DEPENDENCY: serialport@6.2.2 install: prebuild-install || node-gyp rebuild
2019-10-07T01:07:45.540Z [err] npm WARN
2019-10-07T01:07:45.540Z [err] optional
2019-10-07T01:07:45.540Z [err] SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2019-10-07T01:07:45.540Z [err]
2019-10-07T01:07:45.588Z [err] npm
2019-10-07T01:07:45.589Z [err] ERR! code ELIFECYCLE
2019-10-07T01:07:45.589Z [err] npm
2019-10-07T01:07:45.589Z [err] ERR! errno 1
2019-10-07T01:07:45.589Z [err] npm
2019-10-07T01:07:45.589Z [err] ERR!
2019-10-07T01:07:45.589Z [err] serialport@6.0.5 install: prebuild-install || node-gyp rebuild
2019-10-07T01:07:45.589Z [err] npm ERR!
2019-10-07T01:07:45.589Z [err] Exit status 1
2019-10-07T01:07:45.589Z [err] npm
2019-10-07T01:07:45.589Z [err] ERR!
2019-10-07T01:07:45.589Z [err] npm
2019-10-07T01:07:45.589Z [err]
2019-10-07T01:07:45.589Z [err] ERR!
2019-10-07T01:07:45.589Z [err] Failed at the serialport@6.0.5 install script.
2019-10-07T01:07:45.589Z [err] npm
2019-10-07T01:07:45.589Z [err] ERR!
2019-10-07T01:07:45.589Z [err] This is probably not a problem with npm. There is likely additional logging output above.
2019-10-07T01:07:45.657Z [err]
2019-10-07T01:07:45.657Z [err] npm ERR! A complete log of this run can be found in:
2019-10-07T01:07:45.657Z [err] npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-10-07T01_07_45_616Z-debug.log
2019-10-07T01:07:45.681Z rc=1


2019-10-07T01:14:38.269Z 安装 : node-red-contrib-gpio 0.14.0

2019-10-07T01:14:38.279Z npm.cmd install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-gpio@0.14.0

I’m guessing your using a raspberry pi?
Follow these for the full install, it will ask you if you want to install Nodes for the Raspberry, say yes and it will install the gpio node.

https://nodered.org/docs/getting-started/raspberrypi

When the errors say c:\Program Files its more likely to be Windows . The error is that it is missing the visual studio compiler tools but that is because node12 is installed. We recommend node10 LTS version as the base for exactly by his reason.

So what should I do?

I don't know what I should do

You are using nodejs v12 , node-red recommends nodejs v10, the current LTS version.

You need to replace nodejs12 with nodejs10, then reinstall node-red and your nodes and then try again

Can you give me a link to download it? Thank you very much!

You can either install node 10 (Node.js) or follow the instructions that were in the error log, including a link to where you can get more information about what is needed.

1 Like

I've reinstalled 10, but it still won't work

And now the node-red-node-arduino cannot be deleted.

2019-10-07T11:22:05.237Z 删除 : node-red-node-arduino

2019-10-07T11:22:05.259Z npm.cmd remove --no-audit --no-update-notifier --save node-red-node-arduino
2019-10-07T11:22:09.895Z [err] npm
2019-10-07T11:22:09.896Z [err] ERR! path C:\Users\Administrator.node-red\node_modules.bin\prebuild-install.cmd
2019-10-07T11:22:09.896Z [err] npm ERR! code EEXIST
2019-10-07T11:22:09.898Z [err] npm
2019-10-07T11:22:09.898Z [err] ERR! Refusing to delete C:\Users\Administrator.node-red\node_modules.bin\prebuild-install.cmd: is outside C:\Users\Administrator.node-red\node_modules\prebuild-install and not a link
2019-10-07T11:22:09.898Z [err] npm ERR! File exists: C:\Users\Administrator.node-red\node_modules.bin\prebuild-install.cmd
2019-10-07T11:22:09.898Z [err] npm ERR! Move it away, and try again.
2019-10-07T11:22:09.953Z [err]
2019-10-07T11:22:09.953Z [err] npm ERR! A complete log of this run can be found in:
2019-10-07T11:22:09.953Z [err] npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-10-07T11_22_09_902Z-debug.log
2019-10-07T11:22:10.019Z rc=1

I am almost crazy

019-10-08T07:23:14.638Z安装:node-red-contrib-gpio 0.14.0

2019-10-08T07:23:14.673Z npm.cmd install --no-audit --no-update-notifier --save --save-prefix =“〜” --production node-red-contrib-gpio@0.14 .0
2019-10-08T07:23:44.986Z [out]
2019-10-08T07:23:44.986Z [out]> serialport@6.0.5安装C:\ Users \ Administrator.node-red \ node_modules \ johnny-五\ node_modules \ firmata \ node_modules \ serialport
2019-10-08T07:23:44.986Z [out]>预构建安装|| node-
gyp 重建2019-10-08T07:23:44.986Z [out]
2019-10-08T07:23:47.207Z [err] prebuild-install
2019-10-08T07:23:47.207Z [err] WARN安装没有预建找到二进制文件(target = 10.16.3 runtime = node arch = x64 platform = win32)
2019-10-08T07:23:47.237Z [out]
2019-10-08T07:23:47.237Z [出] C:\ Users \ Administrator.node-red \ node_modules \ johnny-five \ node_modules \ firmata \ node_modules \ serialport>如果
2019-10-08T07:23:47.237Z [出]未定义npm_config_node_gyp(节点“ C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ npm-lifecycle \ node-gyp-bin \ .... \ node_modules \ node-gyp \ bin \ node-gyp.js“重建)else(节点” C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js“重建)
2019-10-08T07 :23:50.103Z [错误]
gyp 2019-10-08T07:23:50.103Z [错误]
2019-10-08T07:23:50.103Z [错误]错误!找到VS
2019-10-08T07:23:50.104Z [错误]
2019-10-08T07:23:50.104Z [错误] gyp错误!
2019-10-08T07:23:50。
2019-10-08T07:23:50.104Z [err] gyp ERR!
2019-10-08T07:23:50.104Z [err]查找VS-寻找Visual Studio版本2017
2019-10-10TT07:23:50.104Z [err] gyp ERR!
2019-10-08T07:23:50.104Z [err]查找未设置VS VCINSTALLDIR,未在VS命令提示符中运行
2019-10-08T07:23:50.104Z [err]
gyp 2019-10-08T07:23:50.104Z [ err] ERR!find VS无法使用PowerShell查找Visual Studio 2017或更高版本
2019-10-08T07:23:50.104Z [err] gyp ERR!找到VS
2019-10-08T07:23:50.104Z [err]寻找Visual Studio 2015
2019-10-10T07:23:50.104Z [err] gyp ERR!
2019-10-08T07:23:50.104Z [ERR]查找VS-未找到
2019-10-08T07:23:50.104Z [ERR] GYP
2019-10-08T07:23:50.104Z [err] ERR!找到VS而不是寻找VS2013,因为仅在Node.js 8
之前才支持VS2013。[err] gyp ERR!找到VS
2019-10-08T07:23:50.104Z [错误]
2019-10-08T07:23:50.104Z [错误] gyp错误!
2019-10-08T07:23:50.104Z [错误]为msvs_version查找VS有效版本:
2019-10-08T07:23:50.104Z [错误]
gyp 2019-10-08T07:23:50.104Z [错误]错误!找到VS
2019-10-08T07:23:50.104Z [err] gyp ERR!找到VS
2019-10-08T07:23:50.104Z [错误] *************************************** ****************************
2019-10-08T07:23:50.104Z [ERR] gyp ERR!
2019-10-08T07:23:50.104Z [err]查找VS您需要安装最新版本的Visual Studio
2019-10-08T07:23:50.104Z [err] gyp ERR!
2019-10-08T07:23:50.105Z [err]找到VS,包括“使用C ++进行桌面开发”工作负载。
2019-10-08T07:23:50.105Z [错误]
gyp 2019-10-08T07:23:50.105Z [错误]错误!查找VS有关更多信息,请参阅以下文档:
2019-10-08T07:23:50.105Z [err]
gyp 2019-10-08T07:23:50.105Z [err]错误!找到VS https://github.com/nodejs/node-gyp#on-windows
2019-10-08T07:23:50.105Z [err] gyp ERR!找到VS
2019-10-08T07:23:50.105Z [err] *************************************** ****************************
2019-10-08T07:23:50.105Z [ERR] gyp ERR!
2019-10-08T07:23:50.105Z [err]找到VS
2019-10-08T07:23:50.107Z [err] gyp ERR!配置错误
2019-10-08T07:23:50.107Z [err] gyp ERR!堆栈错误:找不到要使用
2019-10-08T07:23:50.107Z的任何Visual Studio安装![err] gyp ERR!堆栈在VisualStudioFinder.fail(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:121:47)
2019-10-08T07:23:50.107 Z [err] gyp ERR!堆栈在findVisualStudio2013(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:74:16)
2019-10-08T07:23:50.107Z [ err] gyp ERR!堆栈位于VisualStudioFinder.findVisualStudio2013(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:344:14)
2019-10-08T07:23:50.107Z [err] gyp ERR!堆栈在findVisualStudio2015(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:70:14)
2019-10-08T07:23:50.107Z [嗯]哎呀!堆叠在regSearchKeys(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:365:16)
2019-10-08T07:23:50.107Z [ err]
gyp 2019-10-08T07:23:50.107Z [err] ERR!堆叠在regGetValue(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ util.js:54:7)
2019-10-08T07:23:50.107Z [err] GYP
2019-10-08T07:23:50.107Z [ERR] ERR!堆叠在C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ util.js:33:16
2019-10-08T07:23:50.107Z [err]
gyp 2019-10-08T07:23:50.107Z [err] ERR!堆栈在ChildProcess.exithandler(child_process.js:301:5)
2019-10-08T07:23:50.107Z [err] gyp ERR!堆栈
2019-10-08T07:23:50.107Z [ERR]在ChildProcess.emit(events.js:198:13)
2019-10-08T07:23:50.107Z [ERR] GYP ERR!
2019-10-08T07:23:50.107Z [err]堆栈可能会关闭(internal / child_process.js:982:16)
2019-10-08T07:23:50.108Z [err]
gyp 2019-10-08T07:23:50.108 Z [err] ERR!系统
2019-10-08T07:23:50.108Z [err] Windows_NT 6.1.7601
2019-10-08T07:23:50.108Z [err] gyp
2019-10-08T07:23:50.108Z [err] ERR!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建”
2019 -10-08T07:23:50.108Z [err] gyp ERR!
2019-10-08T07:23:50.108Z [err] cwd C:\ Users \ Administrator.node-red \ node_modules \ johnny-five \ node_modules \ firmata \ node_modules \ serialport
2019-10-08T07:23:50.108Z [err ] gyp ERR!
2019-10-08T07:23:50.108Z [err]节点-v v10.16.3
2019-10-08T07:23:50.108Z [err] gyp ERR!
2019-10-08T07:23:50.108Z [err] node-gyp -v v5.0.3
2019-10-08T07:23:50.108Z [err]
gyp 2019-10-08T07:23:50.108Z [err] ERR!不好
2019-10-08T07:23:50.135Z [out]
2019-10-08T07:23:50.135Z [out]> serialport@6.0.5安装C:\ Users \ Administrator.node-red \ node_modules \ node-red-contrib-gpio \ node_modules \ firmata \ node_modules \ serialport
2019- 10-08T07:23:50.135Z [out]>预先安装|| node-
gyp 重建2019-10-08T07:23:50.135Z [out]
2019-10-08T07:23:52.358Z [err]预先安装
2019-10-08T07:23:52.359Z [err]警告安装没有预先构建找到二进制文件(target = 10.16.3 runtime = node arch = x64 platform = win32)
2019-10-08T07:23:52.384Z [out]
2019-10-08T07:23:52.384Z [out] C:\ Users \ Administrator.node-red \ node_modules \ node-red-contrib-gpio \ node_modules \ firmata \ node_modules \ serialport>如果未定义npm_config_node_gyp(节点“ C :\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ npm-lifecycle \ node-gyp-bin \ .... \ node_modules \ node-gyp \ bin \ node-gyp.js“ rebuild)else) (重建节点“ C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”)
2019-10-08T07:23:54.979Z [err] gyp
2019-10-08T07:23:54.979Z [错误]
2019-10-08T07:23:54.979Z [错误]错误!找到VS
2019-10-08T07:23:54.979Z [err] gyp ERR!
2019-10-08T07:23:54.979Z [ERR]查找VS msvs_version是从命令行或
NPM 配置中设置的2019-10-08T07:23:54.979Z [ERR] GYP
2019-10-08T07:23:54.979Z [err] ERR!查找VS-寻找Visual Studio版本2017
2019-10-08T07:23:54.979Z [err]
gyp 2019-10-08T07:23:54.979Z [err]错误!找到VS
2019-10-08T07:23:54.979Z [err] VCINSTALLDIR未设置,未在VS命令提示符中运行
2019-10-08T07:23:54.979Z [err] gyp ERR!
2019-10-08T07:23:54.979Z [err]查找VS无法使用PowerShell查找Visual Studio 2017或更高版本
2019-10-08T07:23:54.979Z [err] gyp ERR!
2019-10-08T07:23:54.979Z [错误]找到VS寻找Visual Studio 2015
2019-10-08T07:23:54.979Z [错误]
gyp 2019-10-08T07:23:54.980Z [错误]错误!找到VS
2019-10-08T07:23:54.980Z [错误]-找不到
2019-10-08T07:23:54.980Z [错误] gyp错误!
2019-10-08T07:23:54.980Z [ERR]发现VS不在寻找VS2013,因为仅在Node.js 8中才支持
VS2013 2019-10-08T07:23:54.980Z [ERR]
gyp 2019-10-08T07: 23:54.980Z [错误]错误!找到VS
2019-10-08T07:23:54.980Z [错误]
2019-10-08T07:23:54.980Z [错误] gyp错误!
2019-10-08T07:23:54.980Z [错误]为msvs_version查找VS有效版本:
2019-10-08T07:23:54.980Z [错误] gyp错误!
2019-10-08T07:23:54.980Z [错误]查找VS
2019-10-08T07:23:54.980Z [错误]
gyp 2019-10-08T07:23:54.980Z [错误]错误!找到VS **************************************************** **************
2019-10-08T07:23:54.980Z [err] gyp ERR!
2019-10-08T07:23:54.980Z [err]查找VS您需要安装最新版本的Visual Studio
2019-10-08T07:23:54.980Z [错误]
gyp 2019-10-08T07:23:54.980Z [错误]错误!找到VS
2019-10-08T07:23:54.980Z [err],包括“使用C ++进行桌面开发”工作负载。
2019-10-08T07:23:54.980Z [err] gyp ERR!
2019-10-08T07:23:54.980Z [错误]查找VS有关更多信息,请参考以下文档:
2019-10-08T07:23:54.980Z [错误]
gyp 2019-10-08T07:23:54.980Z [错误]呃!找到VS
2019-10-08T07:23:54.980Z [err] https://github.com/nodejs/node-gyp#on-windows
2019-10-08T07:23:54.980Z [err]
gyp 2019-10- 08T07:23:54.980Z [err] ERR!找到VS **************************************************** **************
2019-10-08T07:23:54.981Z [err] gyp ERR!
2019-10-08T07:23:54.981Z [ERR]查找VS
2019-10-08T07:23:54.982Z [err] gyp ERR!配置错误
2019-10-08T07:23:54.983Z [错误]
gyp 2019-10-08T07:23:54.983Z [错误]错误!堆栈错误:找不到要使用
2019-10-08T07:23:54.983Z的任何Visual Studio安装gyp
2019-10-08T07:23:54.983Z [err]错误!堆栈在VisualStudioFinder.fail(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:121:47)
2019-10-08T07:23:54.983 Z [err]
gyp 2019-10-08T07:23:54.983Z [err]错误!
在findVisualStudio2013上堆叠2019-10-08T07:23:54.983Z [err](C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:74: 16)
2019-10-08T07:23:54.983Z [err] gyp ERR!
2019-10-08T07:23:54.983Z VisualStudioFinder.findVisualStudio2013上的[err]堆栈(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js: 344:14)
2019-10-08T07:23:54.983Z [err]
gyp 2019-10-08T07:23:54.983Z [err] ERR!
在findVisualStudio2015上堆叠2019-10-08T07:23:54.983Z [err](C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:70: 14)
2019-10-08T07:23:54.983Z [err] gyp ERR!
2019-10-08T07:23:54.983Z [reg]堆栈位于regSearchKeys(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:365: 16)
2019-10-08T07:23:54.983Z [err] gyp
2019-10-08T07:23:54.983Z [错误]错误!堆叠在regGetValue(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ util.js:54:7)
2019-10-08T07:23:54.983Z [err]糟糕!堆栈
2019-10-08T07:23:54.983Z [err] at C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ util.js:33:16
2019-10 -08T07:23:54.983Z [err] gyp ERR!
2019-10-08T07:23:54.983Z [err]堆栈在ChildProcess.exithandler(child_process.js:301:5)
2019-10-08T07:23:54.983Z [err] gyp ERR!
2019-10-08T07:23:54.983Z [err]堆栈在ChildProcess.emit(events.js:198:13)
2019-10-08T07:23:54.983Z [err]
gyp 2019-10-08T07:23:54.983 Z [err] ERR!在也许关闭处堆叠(internal / child_process.js:982:16)
2019-10-08T07:23:54.984Z [err]
gyp 2019-10-08T07:23:54.984Z [err] ERR!系统Windows_NT 6.1.7601
2019-10-08T07:23:54.984Z [错误]
gyp 2019-10-08T07:23:54.984Z [错误]错误!命令
2019-10-08T07:23:54.984Z [err]“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js“” rebuild“
2019-10-08T07:23:54.984Z [err]
gyp 2019-10-08T07:23:54.984Z [err]错误!CWD C:\ Users \ Administrator.node-red \ node_modules \ node-red-contrib-gpio \ node_modules \ firmata \ node_modules \ serialport
2019-10-08T07:23:54.985Z [err] gyp ERR!节点-v v10.16.3
2019-10-08T07:23:54.985Z [ERR] gyp ERR!node-gyp -v v5.0.3
2019-10-08T07:23:54.985Z [err] gyp ERR!不好
2019-10-08T07:23:55.473Z [err] npm
2019-10-08T07:23:55.473Z [err]警告可选的跳过可选依赖性:serialport@6.0.5(node_modules \ johnny-five \ node_modules \ firmata \ node_modules \ serialport):
2019-10-08T07:23:55.473Z [err] npm警告可选跳过功能依赖:serialport@6.0.5安装: prebuild-install || node-gyp rebuild
2019-10-08T07:23:55.473Z [err] npm警告可选跳过功能依赖:退出状态1
2019-10-08T07:23:55.473Z [错误]
2019-10-08T07:23:55.516Z [错误] npm
2019-10-08T07:23:55.517Z [错误]错误!代码ELIFECYCLE
2019-10-08T07:23:55.517Z [错误] npm
2019-10-08T07:23:55.517Z [错误]错误!errno 1
2019-10-08T07:23:55.517Z [err] npm
2019-10-08T07:23:55.517Z [err] ERR!serialport@6.0.5安装: prebuild-install || node-gyp rebuild
2019-10-08T07:23:55.517Z [err] npm ERR!
2019-10-08T07:23:55.517Z [错误]退出状态1
2019-10-08T07:23:55.517Z [错误] npm
2019-10-08T07:23:55.517Z [错误]错误!
2019-10-08T07:23:55.517Z [err] npm ERR!在serialport@6.0.5安装脚本上失败。
2019-10-08T07:23:55.517Z [err] npm
2019-10-08T07:23:55.517Z [err] ERR!npm可能不是问题。上面可能还有其他日志记录输出。
2019-10-08T07:23:55.603Z [错误]
2019-10-08T07:23:55.603Z [错误] npm错误!可以在以下时间找到此运行的完整日志:
2019-10-08T07:23:55.603Z [err] npm ERR!C:\ Users \ Administrator \ AppData \ Roaming \ npm-cache_logs \ 2019-10-08T07_23_55_522Z-debug.log
2019-10-08T07:23:55.636Z rc = 1

You need to explain what version of

  • Node-RED
  • nodejs
  • npm
    You are using.

Also what version of Visual Studio have you got installed?