# Node-red-contrib-tensorflow 0.3.1 update failed

**URL:** <https://discourse.nodered.org/t/node-red-contrib-tensorflow-0-3-1-update-failed/71514>\
**Category:** General\
**Created:** [30 November 2022 15:50 UTC](https://discourse.nodered.org/t/node-red-contrib-tensorflow-0-3-1-update-failed/71514 "2022-11-30T15:50:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [30 November 2022 15:50 UTC](https://discourse.nodered.org/t/node-red-contrib-tensorflow-0-3-1-update-failed/71514/1 "2022-11-30T15:50:58Z")

</div>

I tried to update Tensorflow node from version 0.2.2 to 0.3.1  
Unfortunately it failed with the following error messages:

```auto
2022-11-30T15:39:17.678Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-tensorflow@0.3.1
2022-11-30T15:39:18.353Z [err] npm
2022-11-30T15:39:18.354Z [err]  
2022-11-30T15:39:18.354Z [err] WARN config production Use `--omit=dev` instead.
2022-11-30T15:39:53.829Z [err] npm
2022-11-30T15:39:53.829Z [err]  
2022-11-30T15:39:53.829Z [err] ERR! code 1
2022-11-30T15:39:53.830Z [err] npm
2022-11-30T15:39:53.830Z [err] ERR!
2022-11-30T15:39:53.830Z [err] path
2022-11-30T15:39:53.830Z [err] /var/db/nodered/node_modules/@tensorflow/tfjs-node
2022-11-30T15:39:53.833Z [err] npm
2022-11-30T15:39:53.833Z [err] ERR! command failed
2022-11-30T15:39:53.833Z [err] npm
2022-11-30T15:39:53.833Z [err] ERR! 
2022-11-30T15:39:53.833Z [err] command sh /tmp/install-a28218cb.sh
2022-11-30T15:39:53.833Z [err] npm
2022-11-30T15:39:53.833Z [err] ERR! /var/db/nodered/node_modules/@tensorflow/tfjs-node/scripts/deps-constants.js:86
2022-11-30T15:39:53.833Z [err] npm 
2022-11-30T15:39:53.833Z [err] ERR! throw Exception('Unsupported platform: ' + os.platform());
2022-11-30T15:39:53.833Z [err] npm ERR! ^
2022-11-30T15:39:53.833Z [err] npm ERR!
2022-11-30T15:39:53.834Z [err]  
2022-11-30T15:39:53.834Z [err] npm ERR!
2022-11-30T15:39:53.834Z [err] ReferenceError: Exception is not defined
2022-11-30T15:39:53.834Z [err] npm ERR!
2022-11-30T15:39:53.834Z [err] at Object.<anonymous> (/var/db/nodered/node_modules/@tensorflow/tfjs-node/scripts/deps-constants.js:86:3)
2022-11-30T15:39:53.834Z [err] npm ERR!
2022-11-30T15:39:53.834Z [err] at Module._compile (node:internal/modules/cjs/loader:1109:14)
2022-11-30T15:39:53.834Z [err] npm ERR!
2022-11-30T15:39:53.834Z [err] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
2022-11-30T15:39:53.834Z [err] npm ERR!
2022-11-30T15:39:53.834Z [err] at Module.load (node:internal/modules/cjs/loader:989:32)
2022-11-30T15:39:53.834Z [err] npm 
2022-11-30T15:39:53.834Z [err] ERR! at Function.Module._load (node:internal/modules/cjs/loader:829:14)
2022-11-30T15:39:53.834Z [err] npm 
2022-11-30T15:39:53.834Z [err] ERR! at Module.require (node:internal/modules/cjs/loader:1013:19)
2022-11-30T15:39:53.834Z [err] npm 
2022-11-30T15:39:53.834Z [err] ERR! at require (node:internal/modules/cjs/helpers:93:18)
2022-11-30T15:39:53.834Z [err] npm 
2022-11-30T15:39:53.834Z [err] ERR! at Object.<anonymous> (/var/db/nodered/node_modules/@tensorflow/tfjs-node/scripts/install.js:36:5)
2022-11-30T15:39:53.834Z [err] npm 
2022-11-30T15:39:53.834Z [err] ERR! at Module._compile (node:internal/modules/cjs/loader:1109:14)
2022-11-30T15:39:53.834Z [err] npm 
2022-11-30T15:39:53.834Z [err] ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
2022-11-30T15:39:53.837Z [err] 
2022-11-30T15:39:53.838Z [err] npm ERR!
2022-11-30T15:39:53.838Z [err] A complete log of this run can be found in:
2022-11-30T15:39:53.838Z [err] npm ERR! /var/db/nodered/.npm/_logs/2022-11-30T15_39_18_297Z-debug-0.log
2022-11-30T15:39:53.893Z rc=1

```

The line that took my special attention was:

```auto
2022-11-30T15:39:53.833Z [err] ERR! throw Exception('Unsupported platform: ' + os.platform());

```

where "Unsupported platform" was in red.

This could very well be the case, as I tried to run it in a TrueNAS (FreeBSD) jail on a  
HP Micro Gen 8 server. Anyone can confirm that version 0.2.2. is the latest that should run on FreeBSD platform. Any hint to solve it, is also welcome.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [30 November 2022 17:02 UTC](https://discourse.nodered.org/t/node-red-contrib-tensorflow-0-3-1-update-failed/71514/2 "2022-11-30T17:02:58Z")

</div>

i would suggest to [open an issue](https://github.com/kazuhitoyokoi/node-red-contrib-tensorflow/issues?q=is%3Aopen+is%3Aissue) on github,

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [30 November 2022 20:09 UTC](https://discourse.nodered.org/t/node-red-contrib-tensorflow-0-3-1-update-failed/71514/3 "2022-11-30T20:09:40Z")

</div>

Thanks @bakman2,

I created an issue, as you said.

> <https://github.com/kazuhitoyokoi/node-red-contrib-tensorflow/issues/13>
>
> I tried to update Tensorflow node from version 0.2.2 to 0.3.1
> Unfortunately it …failed with the following error messages:
> 
> \`\`\`
> 2022-11-30T15:39:17.678Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-tensorflow@0.3.1
> 2022-11-30T15:39:18.353Z \[err\] npm
> 2022-11-30T15:39:18.354Z \[err\]  
> 2022-11-30T15:39:18.354Z \[err\] WARN config production Use \`--omit=dev\` instead.
> 2022-11-30T15:39:53.829Z \[err\] npm
> 2022-11-30T15:39:53.829Z \[err\]  
> 2022-11-30T15:39:53.829Z \[err\] ERR! code 1
> 2022-11-30T15:39:53.830Z \[err\] npm
> 2022-11-30T15:39:53.830Z \[err\] ERR!
> 2022-11-30T15:39:53.830Z \[err\] path
> 2022-11-30T15:39:53.830Z \[err\] /var/db/nodered/node\_modules/@tensorflow/tfjs-node
> 2022-11-30T15:39:53.833Z \[err\] npm
> 2022-11-30T15:39:53.833Z \[err\] ERR! command failed
> 2022-11-30T15:39:53.833Z \[err\] npm
> 2022-11-30T15:39:53.833Z \[err\] ERR! 
> 2022-11-30T15:39:53.833Z \[err\] command sh /tmp/install-a28218cb.sh
> 2022-11-30T15:39:53.833Z \[err\] npm
> 2022-11-30T15:39:53.833Z \[err\] ERR! /var/db/nodered/node\_modules/@tensorflow/tfjs-node/scripts/deps-constants.js:86
> 2022-11-30T15:39:53.833Z \[err\] npm 
> 2022-11-30T15:39:53.833Z \[err\] ERR! throw Exception('Unsupported platform: ' + os.platform());
> 2022-11-30T15:39:53.833Z \[err\] npm ERR! ^
> 2022-11-30T15:39:53.833Z \[err\] npm ERR!
> 2022-11-30T15:39:53.834Z \[err\]  
> 2022-11-30T15:39:53.834Z \[err\] npm ERR!
> 2022-11-30T15:39:53.834Z \[err\] ReferenceError: Exception is not defined
> 2022-11-30T15:39:53.834Z \[err\] npm ERR!
> 2022-11-30T15:39:53.834Z \[err\] at Object.\<anonymous\> (/var/db/nodered/node\_modules/@tensorflow/tfjs-node/scripts/deps-constants.js:86:3)
> 2022-11-30T15:39:53.834Z \[err\] npm ERR!
> 2022-11-30T15:39:53.834Z \[err\] at Module.\_compile (node:internal/modules/cjs/loader:1109:14)
> 2022-11-30T15:39:53.834Z \[err\] npm ERR!
> 2022-11-30T15:39:53.834Z \[err\] at Object.Module.\_extensions..js (node:internal/modules/cjs/loader:1138:10)
> 2022-11-30T15:39:53.834Z \[err\] npm ERR!
> 2022-11-30T15:39:53.834Z \[err\] at Module.load (node:internal/modules/cjs/loader:989:32)
> 2022-11-30T15:39:53.834Z \[err\] npm 
> 2022-11-30T15:39:53.834Z \[err\] ERR! at Function.Module.\_load (node:internal/modules/cjs/loader:829:14)
> 2022-11-30T15:39:53.834Z \[err\] npm 
> 2022-11-30T15:39:53.834Z \[err\] ERR! at Module.require (node:internal/modules/cjs/loader:1013:19)
> 2022-11-30T15:39:53.834Z \[err\] npm 
> 2022-11-30T15:39:53.834Z \[err\] ERR! at require (node:internal/modules/cjs/helpers:93:18)
> 2022-11-30T15:39:53.834Z \[err\] npm 
> 2022-11-30T15:39:53.834Z \[err\] ERR! at Object.\<anonymous\> (/var/db/nodered/node\_modules/@tensorflow/tfjs-node/scripts/install.js:36:5)
> 2022-11-30T15:39:53.834Z \[err\] npm 
> 2022-11-30T15:39:53.834Z \[err\] ERR! at Module.\_compile (node:internal/modules/cjs/loader:1109:14)
> 2022-11-30T15:39:53.834Z \[err\] npm 
> 2022-11-30T15:39:53.834Z \[err\] ERR! at Object.Module.\_extensions..js (node:internal/modules/cjs/loader:1138:10)
> 2022-11-30T15:39:53.837Z \[err\] 
> 2022-11-30T15:39:53.838Z \[err\] npm ERR!
> 2022-11-30T15:39:53.838Z \[err\] A complete log of this run can be found in:
> 2022-11-30T15:39:53.838Z \[err\] npm ERR! /var/db/nodered/.npm/\_logs/2022-11-30T15\_39\_18\_297Z-debug-0.log
> 2022-11-30T15:39:53.893Z rc=1
> \`\`\`
> 
> The line that took my special attention was:
> 
> \`2022-11-30T15:39:53.833Z \[err\] ERR! throw Exception('Unsupported platform: ' + os.platform());\`
> 
> where "Unsupported platform" was in red.
> 
> This could very well be the case, as I tried to run it in a TrueNAS (FreeBSD) jail on a
> HP Micro Gen 8 server. Anyone can confirm that version 0.2.2. is the latest that should run on FreeBSD platform? Any hint to solve it, is also welcome.

---

<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:** [29 January 2023 20:10 UTC](https://discourse.nodered.org/t/node-red-contrib-tensorflow-0-3-1-update-failed/71514/4 "2023-01-29T20:10:15Z")

</div>

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