<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Freemaster lite, Node-red Serialport -&amp;gt; bindings.node is not valid win32 application in FreeMASTER</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403184#M865</link>
    <description>&lt;P&gt;Hello, I would like ask.&lt;/P&gt;&lt;P&gt;I installed FreeMaster lite, and I would like to use &lt;SPAN&gt;node-red-node-serialport&amp;nbsp;&lt;/SPAN&gt;extension to the Node-Red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I get an issue: bindings.node is not valid win32 application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to recompile it, but even the recompile was success I still obtain this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/node-red/node-red-nodes/issues/879" target="_blank" rel="noopener"&gt;I tried all this&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pavol&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 09:58:53 GMT</pubDate>
    <dc:creator>PavolStrbak</dc:creator>
    <dc:date>2022-01-21T09:58:53Z</dc:date>
    <item>
      <title>Freemaster lite, Node-red Serialport -&gt; bindings.node is not valid win32 application</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403184#M865</link>
      <description>&lt;P&gt;Hello, I would like ask.&lt;/P&gt;&lt;P&gt;I installed FreeMaster lite, and I would like to use &lt;SPAN&gt;node-red-node-serialport&amp;nbsp;&lt;/SPAN&gt;extension to the Node-Red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I get an issue: bindings.node is not valid win32 application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to recompile it, but even the recompile was success I still obtain this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/node-red/node-red-nodes/issues/879" target="_blank" rel="noopener"&gt;I tried all this&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pavol&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 09:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403184#M865</guid>
      <dc:creator>PavolStrbak</dc:creator>
      <dc:date>2022-01-21T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster lite, Node-red Serialport -&gt; bindings.node is not valid win32 application</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403222#M867</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196034"&gt;@PavolStrbak&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Your issue is most likely caused by inconsistent version between NodeJS versions used on one side by your system and on another side - by FreeMASTER Lite.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;: &lt;BR /&gt;When you install serial library, in both cases via Node-RED Pallet Manager or NPM it uses your system NodeJS distribution. I suspect that it is most likely a 64bit version. FreeMASTER Lite is a 32bit application (we kept it as 32bit binary for consistency with main FreeMASTER GUI Tool).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;One option would be to install a 32bit version of NodeJS (FreeMASTER Lite uses internally NodeJS 16.8.0 32bit). According to NodeJS documentation you don't need to match the exact version of NodeJS because the .node files ABI is consistent across NodeJS versions.&lt;BR /&gt;I could suggest using NVM to rapidly switch between NodeJS versions in case you need the 64bit one in your other projects.&lt;/LI&gt;
&lt;LI&gt;The second options is to use your system NodeJS as main one for your work. In this case you would need to install separately Node-RED and inode-red-contrib-freemaster (it comes with FreeMASTER installation), and use FreeMASTER Lite as a simple JSON-RPC server (Node-RED is no longer needed so it ca be disabled when you start the tool '&lt;SPAN class="pun"&gt;--&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;no&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;node_red'&lt;/SPAN&gt;).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Let me know if either of these options fixes your issue,&lt;BR /&gt;Iulian&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 11:33:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403222#M867</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2022-01-21T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster lite, Node-red Serialport -&gt; bindings.node is not valid win32 application</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403794#M872</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100557"&gt;@iulian_stan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for quick response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I tried to reinstall NodeJS to 32bit (you right, I had 64bit)&amp;nbsp; but other issue occurred:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;21 Jan 17:08:12 - [warn] [node-red-node-serialport/serialport] Error: The module '\\?\C:\Users\nxf68958\.node-red\node_modules\@serialport\bindings\build\Release\bindings.node'&lt;BR /&gt;was compiled against a different Node.js version using&lt;BR /&gt;NODE_MODULE_VERSION 93. This version of Node.js requires&lt;BR /&gt;NODE_MODULE_VERSION 64. Please try re-compiling or re-installing&lt;BR /&gt;the module (for instance, using `npm rebuild` or `npm install`).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I tried to rebuild it again, Also used&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/46384591/node-was-compiled-against-a-different-node-js-version-using-node-module-versio" target="_self"&gt;StackoverFlow&lt;/A&gt;&amp;nbsp;which I found, use NodeJS with 16.8.0 32Bit installation, rebuild packages by electron and reinstall everything, But nothing helped. &lt;LI-EMOJI id="lia_confused-face" title=":confused_face:"&gt;&lt;/LI-EMOJI&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NVM is not sufficient for me.&lt;/P&gt;
&lt;P&gt;So, I will try to install Node-Red separately and use the inode-red-contrib-freemaster.&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;Pavol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 07:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403794#M872</guid>
      <dc:creator>PavolStrbak</dc:creator>
      <dc:date>2022-01-24T07:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster lite, Node-red Serialport -&gt; bindings.node is not valid win32 application</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403924#M873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196034"&gt;@PavolStrbak&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;First I'd like to fix one of my previous statements&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;you don't need to match the exact version of NodeJS because the .node files ABI is consistent across NodeJS versions&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;This applies to minor, and patch versions. The major version should still match. You can find NodeJS versions and their corresponding ABI (NODE_MODULE_VERSION) &lt;A href="https://nodejs.org/en/download/releases/" target="_self"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Next, according to your logs, there's still a 'node-red-node-serialport' package built with NodeJS 10 in your Node-RED home directory. As long as there's already a built version of the package installing it (even with a different NodeJS version) won't have any effect - just checked it on my side. I reproduced your error and had to reinstall 'node-red-node-serialport' (uninstall and install again) to fix the issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One more comment here - after uninstalling old package using npm, Pallett Manager from Node-RED can also install it correctly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Iulian&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 10:42:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403924#M873</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2022-01-24T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster lite, Node-red Serialport -&gt; bindings.node is not valid win32 application</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403929#M874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100557"&gt;@iulian_stan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately don't. &lt;LI-EMOJI id="lia_confused-face" title=":confused_face:"&gt;&lt;/LI-EMOJI&gt; I reinstall everything.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Uninstall FreeMaster, npm, nodejs, and everything which I found connected by node-red. Also from users/.../appdata...&lt;/P&gt;
&lt;P&gt;then download exactly the same version of nodejs as you said that the FreeMaster is using, reinstall FreeMaster and all packages, used new clear workspace, and still have the same error.&lt;/P&gt;
&lt;P&gt;But in case you was able to reproduce my issue, and also fix this problem, I will try to do it again. Maybe some configuration&amp;nbsp;remained hidden from me. &lt;LI-EMOJI id="lia_grinning-face-with-smiling-eyes" title=":grinning_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;it follows that the problem is on my side. And that's important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So. Thank You very much &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100557"&gt;@iulian_stan&lt;/a&gt;&amp;nbsp;for help.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 11:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Freemaster-lite-Node-red-Serialport-gt-bindings-node-is-not/m-p/1403929#M874</guid>
      <dc:creator>PavolStrbak</dc:creator>
      <dc:date>2022-01-24T11:08:59Z</dc:date>
    </item>
  </channel>
</rss>

