# Why can't the serial palette be installed

**URL:** <https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521>\
**Category:** General\
**Created:** [18 June 2020 05:55 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521 "2020-06-18T05:55:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimas](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Dimas](https://discourse.nodered.org/u/Dimas)\
**Post date:** [18 June 2020 05:55 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/1 "2020-06-18T05:55:38Z")

</div>

![tanyak](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/f/1f9a08f1b3cb4f96b49d4474dac65c0eb28a67c9.png) sir, is there a solution about this problem ?

---

<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:** [18 June 2020 06:11 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/2 "2020-06-18T06:11:16Z")

</div>

Maybe don't use node13 ? (Though we can't see the actual error in that short image)

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [18 June 2020 07:45 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/3 "2020-06-18T07:45:34Z")

</div>

serialport requires some native libraries to be built during the install. You're likely missing some native build tools or libraries. I'm not a Windows user though so I can't help with that. There's instructions at the end of this page: [https://serialport.io/docs/guide-installation](https://serialport.io/docs/guide-installation)

It does tell the build from source step would be optional so maybe they don't provide a binary for your Node.js version like @dceejay hinted.

---

<div class="post-metadata">

**Author:** ![Dimas](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Dimas](https://discourse.nodered.org/u/Dimas)\
**Post date:** [18 June 2020 09:43 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/4 "2020-06-18T09:43:14Z")

</div>

I use the version 13.9.0 sir. I use this syntax (npm i node-red-node-serialport)

---

<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:** [18 June 2020 09:45 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/5 "2020-06-18T09:45:17Z")

</div>

@dimas can you share more of the log? The screenshot you've shared tells us there was an error, but not what it was.

---

<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:** [18 June 2020 09:52 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/6 "2020-06-18T09:52:52Z")

</div>

The prebuilt bindings are listed here - [https://github.com/serialport/node-serialport/releases](https://github.com/serialport/node-serialport/releases)  
We currently use serialport 8.0.8 library which is at v72... this is at nodejs12. If you really need to use nodejs13 then you will need to make sure you have all the compiler tools installed.

(Though again - we also don't support NodeRED on non LTS versions of nodejs)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 June 2020 10:23 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/7 "2020-06-18T10:23:38Z")

</div>

See this for details of which versions are currently supported  
[https://nodered.org/docs/faq/node-versions](https://nodered.org/docs/faq/node-versions)

---

<div class="post-metadata">

**Author:** ![Dimas](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Dimas](https://discourse.nodered.org/u/Dimas)\
**Post date:** [18 June 2020 10:26 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/8 "2020-06-18T10:26:04Z")

</div>

* * *

2020-06-18T10:24:36.199Z Install : node-red-node-serialport 0.10.3

2020-06-18T10:24:36.222Z npm.cmd install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-node-serialport@0.10.3  
2020-06-18T10:24:43.269Z [out]  
2020-06-18T10:24:43.269Z [out] \> @serialport/bindings@8.0.8 install C:\Users\Dimas.node-red\node\_modules@serialport\bindings  
2020-06-18T10:24:43.269Z [out] \> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild  
2020-06-18T10:24:43.269Z [out]  
2020-06-18T10:24:44.193Z [err] prebuild-install  
2020-06-18T10:24:44.193Z [err] WARN install No prebuilt binaries found (target=13.9.0 runtime=node arch=x64 libc= platform=win32)  
2020-06-18T10:24:44.217Z [out]  
2020-06-18T10:24:44.217Z [out] C:\Users\Dimas.node-red\node\_modules@serialport\bindings\>if not  
2020-06-18T10:24:44.217Z [out] 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 (node "C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js" rebuild )  
2020-06-18T10:24:45.263Z [err] gyp  
2020-06-18T10:24:45.263Z [err]  
2020-06-18T10:24:45.264Z [err] ERR! find Python  
2020-06-18T10:24:45.264Z [err] gyp ERR!  
2020-06-18T10:24:45.264Z [err] find Python Python is not set from command line or npm configuration  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python Python is not set from environment variable PYTHON  
2020-06-18T10:24:45.264Z [err] gyp  
2020-06-18T10:24:45.264Z [err] ERR! find Python checking if "python" can be used  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python - "python" is not in PATH or produced an error  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python checking if "python2" can be used  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python  
2020-06-18T10:24:45.264Z [err] - "python2" is not in PATH or produced an error  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python checking if "python3" can be used  
2020-06-18T10:24:45.264Z [err] gyp ERR!  
2020-06-18T10:24:45.264Z [err] find Python - "python3" is not in PATH or produced an error  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python checking if the py launcher can be used to find Python 2  
2020-06-18T10:24:45.264Z [err] gyp  
2020-06-18T10:24:45.264Z [err] ERR! find Python - "py.exe" is not in PATH or produced an error  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python checking if Python is C:\Python27\python.exe  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python - "C:\Python27\python.exe" could not be run  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python  
2020-06-18T10:24:45.264Z [err] checking if Python is C:\Python37\python.exe  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python - "C:\Python37\python.exe" could not be run  
2020-06-18T10:24:45.264Z [err] gyp ERR!  
2020-06-18T10:24:45.264Z [err] find Python  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python You need to install the latest version of Python.  
2020-06-18T10:24:45.264Z [err] gyp ERR!  
2020-06-18T10:24:45.264Z [err] find Python Node-gyp should be able to find and use Python. If not,  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python  
2020-06-18T10:24:45.264Z [err] you can try one of the following options:  
2020-06-18T10:24:45.264Z [err] gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"  
2020-06-18T10:24:45.264Z [err] gyp  
2020-06-18T10:24:45.265Z [err] ERR! find Python (accepted by both node-gyp and npm)  
2020-06-18T10:24:45.265Z [err] gyp ERR!  
2020-06-18T10:24:45.265Z [err] find Python - Set the environment variable PYTHON  
2020-06-18T10:24:45.265Z [err] gyp ERR! find Python - Set the npm configuration variable python:  
2020-06-18T10:24:45.265Z [err] gyp ERR! find Python npm config set python "C:\Path\To\python.exe"  
2020-06-18T10:24:45.265Z [err] gyp ERR!  
2020-06-18T10:24:45.265Z [err] find Python For more information consult the documentation at:  
2020-06-18T10:24:45.265Z [err] gyp ERR! find Python [https://github.com/nodejs/node-gyp#installation](https://github.com/nodejs/node-gyp#installation)  
2020-06-18T10:24:45.265Z [err] gyp ERR! find Python \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2020-06-18T10:24:45.265Z [err] gyp ERR!  
2020-06-18T10:24:45.265Z [err] find Python  
2020-06-18T10:24:45.265Z [err] gyp  
2020-06-18T10:24:45.266Z [err] ERR! configure error  
2020-06-18T10:24:45.266Z [err] gyp ERR!  
2020-06-18T10:24:45.266Z [err] stack Error: Could not find any Python installation to use  
2020-06-18T10:24:45.266Z [err] gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\lib\find-python.js:307:47)  
2020-06-18T10:24:45.266Z [err] gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\lib\find-python.js:136:21)  
2020-06-18T10:24:45.266Z [err] gyp ERR!  
2020-06-18T10:24:45.266Z [err] stack at PythonFinder. (C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\lib\find-python.js:225:16)  
2020-06-18T10:24:45.266Z [err] gyp ERR!  
2020-06-18T10:24:45.266Z [err] stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\lib\find-python.js:271:16)  
2020-06-18T10:24:45.266Z [err] gyp  
2020-06-18T10:24:45.266Z [err] ERR! stack at exithandler (child\_process.js:310:5)  
2020-06-18T10:24:45.266Z [err] gyp ERR! stack at ChildProcess.errorhandler (child\_process.js:322:5)  
2020-06-18T10:24:45.266Z [err] gyp ERR! stack at ChildProcess.emit (events.js:321:20)  
2020-06-18T10:24:45.266Z [err] gyp  
2020-06-18T10:24:45.266Z [err] ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:273:12)  
2020-06-18T10:24:45.266Z [err] gyp ERR!  
2020-06-18T10:24:45.266Z [err] stack at onErrorNT (internal/child\_process.js:467:16)  
2020-06-18T10:24:45.266Z [err] gyp ERR! stack at processTicksAndRejections (internal/process/task\_queues.js:84:21)  
2020-06-18T10:24:45.267Z [err] gyp  
2020-06-18T10:24:45.267Z [err] ERR! System Windows\_NT 10.0.18363  
2020-06-18T10:24:45.267Z [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"  
2020-06-18T10:24:45.267Z [err] gyp ERR! cwd C:\Users\Dimas.node-red\node\_modules@serialport\bindings  
2020-06-18T10:24:45.267Z [err] gyp ERR!  
2020-06-18T10:24:45.267Z [err] node -v v13.9.0  
2020-06-18T10:24:45.267Z [err] gyp  
2020-06-18T10:24:45.267Z [err] ERR! node-gyp -v v5.0.7  
2020-06-18T10:24:45.267Z [err] gyp ERR! not ok  
2020-06-18T10:24:45.511Z [err] npm  
2020-06-18T10:24:45.511Z [err] ERR! code ELIFECYCLE  
2020-06-18T10:24:45.511Z [err] npm ERR!  
2020-06-18T10:24:45.512Z [err] errno 1  
2020-06-18T10:24:45.513Z [err] npm  
2020-06-18T10:24:45.513Z [err] ERR! @serialport/bindings@8.0.8 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`  
2020-06-18T10:24:45.513Z [err] npm ERR! Exit status 1  
2020-06-18T10:24:45.513Z [err] npm ERR!  
2020-06-18T10:24:45.513Z [err]  
2020-06-18T10:24:45.513Z [err] npm ERR! Failed at the @serialport/bindings@8.0.8 install script.  
2020-06-18T10:24:45.513Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  
2020-06-18T10:24:45.539Z [err]  
2020-06-18T10:24:45.539Z [err] npm ERR! A complete log of this run can be found in:  
2020-06-18T10:24:45.539Z [err] npm ERR! C:\Users\Dimas\AppData\Roaming\npm-cache\_logs\2020-06-18T10\_24\_45\_521Z-debug.log  
2020-06-18T10:24:45.570Z rc=1

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 June 2020 10:28 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/9 "2020-06-18T10:28:51Z")

</div>

What do you deduce from the errors?

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [18 June 2020 10:32 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/10 "2020-06-18T10:32:42Z")

</div>

It seems to be a build error as was suggested. You could either downgrade to Node.js or install node-gyp and the required build tools as instructed here: [http://www.youtube.com/watch?v=bugO7qYc8Po](http://www.youtube.com/watch?v=bugO7qYc8Po)

---

<div class="post-metadata">

**Author:** ![Dimas](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Dimas](https://discourse.nodered.org/u/Dimas)\
**Post date:** [18 June 2020 10:43 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/11 "2020-06-18T10:43:32Z")

</div>

thanks a lot sir, after I use version 12.13 the serial palette can be installed

---

<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:** [2 July 2020 10:43 UTC](https://discourse.nodered.org/t/why-cant-the-serial-palette-be-installed/28521/12 "2020-07-02T10:43:32Z")

</div>

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