# Cannot install node-red-contrib-gpio

**URL:** <https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397>\
**Category:** General\
**Created:** [7 October 2019 01:19 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397 "2019-10-07T01:19:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [7 October 2019 01:19 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/1 "2019-10-07T01:19:26Z")

</div>

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](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](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

---

<div class="post-metadata">

**Author:** ![Quiqui64](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/quiqui64/32/12755_2.png) [@Quiqui64](https://discourse.nodered.org/u/Quiqui64)\
**Post date:** [7 October 2019 03:06 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/2 "2019-10-07T03:06:44Z")

</div>

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](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [7 October 2019 05:31 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/3 "2019-10-07T05:31:52Z")

</div>

> [@shj-123558](#):
>
> 2019-10-07T01:07:45.050Z [err] gyp ERR! stack at

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.

---

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [7 October 2019 08:29 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/4 "2019-10-07T08:29:27Z")

</div>

So what should I do?

---

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [7 October 2019 08:30 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/5 "2019-10-07T08:30:01Z")

</div>

I don't know what I should do

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [7 October 2019 08:31 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/6 "2019-10-07T08:31:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [7 October 2019 08:34 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/7 "2019-10-07T08:34:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 October 2019 08:40 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/8 "2019-10-07T08:40:20Z")

</div>

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

> [@shj-123558](#):
>
> * * *
> 
> 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 [GitHub - nodejs/node-gyp: Node.js native addon build tool](https://github.com/nodejs/node-gyp#on-windows)  
> 2019-10-07T01:07:45.050Z [err] gyp ERR! find VS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

---

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [7 October 2019 11:21 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/9 "2019-10-07T11:21:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [7 October 2019 11:24 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/10 "2019-10-07T11:24:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [7 October 2019 11:26 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/12 "2019-10-07T11:26:16Z")

</div>

I am almost crazy

---

<div class="post-metadata">

**Author:** ![shj-123558](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@shj-123558](https://discourse.nodered.org/u/shj-123558)\
**Post date:** [8 October 2019 10:43 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/13 "2019-10-08T10:43:39Z")

</div>

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](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](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

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [8 October 2019 10:59 UTC](https://discourse.nodered.org/t/cannot-install-node-red-contrib-gpio/16397/14 "2019-10-08T10:59:42Z")

</div>

You need to explain what version of

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

Also what version of Visual Studio have you got installed?
