vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
43 stars 15 forks source link

Error when update to 5.20 #122

Closed elyonardo closed 1 year ago

elyonardo commented 1 year ago

Hi. When I tried to update to the new version, today, node-red returns this error.

2023-06-12T10:00:46.483Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-tuya-smart-device@5.2.0
2023-06-12T10:00:48.053Z [err] npm
2023-06-12T10:00:48.053Z [err]  
2023-06-12T10:00:48.053Z [err] WARN config production Use `--omit=dev` instead.
2023-06-12T10:00:49.125Z [out] 
2023-06-12T10:00:49.125Z [out] up to date in 1s
2023-06-12T10:00:49.141Z rc=0

Can you help me?

vinodsr commented 1 year ago

Did you miss any lines ? can't find the error in the ligs

On Mon, 12 Jun 2023 at 3:33 PM, Elia @.***> wrote:

Hi. When I tried to update to the new version, today, node-red returns this error.

2023-06-12T10:00:46.483Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict @.*** 2023-06-12T10:00:48.053Z [err] npm 2023-06-12T10:00:48.053Z [err] 2023-06-12T10:00:48.053Z [err] WARN config production Use --omit=dev instead. 2023-06-12T10:00:49.125Z [out] 2023-06-12T10:00:49.125Z [out] up to date in 1s 2023-06-12T10:00:49.141Z rc=0

Can you help me?

— Reply to this email directly, view it on GitHub https://github.com/vinodsr/node-red-contrib-tuya-smart-device/issues/122, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OGRRQTZBNGDHSSMYWLXK3SOPANCNFSM6AAAAAAZDEFESI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Vinod Surendran R vinodsr.dev

elyonardo commented 1 year ago

No, these are all the lines. I can show you a screenshot of my log. image

I tried to install it two times

vinodsr commented 1 year ago

Can you please share your nodejs version and node red version

On Mon, 12 Jun 2023 at 3:37 PM, Elia @.***> wrote:

No, these are all the lines. I can show you a screenshot of my log. [image: image] https://user-images.githubusercontent.com/35810628/245105621-1952b80e-68be-46b8-a144-4a51d17c8c6f.png

I tried to install it two times

— Reply to this email directly, view it on GitHub https://github.com/vinodsr/node-red-contrib-tuya-smart-device/issues/122#issuecomment-1587014407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OAT3Q5MS6MXC3DVH5DXK3S5DANCNFSM6AAAAAAZDEFESI . You are receiving this because you commented.Message ID: @.*** com>

-- Vinod Surendran R vinodsr.dev

elyonardo commented 1 year ago

Can you please share your nodejs version and node red version On Mon, 12 Jun 2023 at 3:37 PM, Elia @.> wrote: No, these are all the lines. I can show you a screenshot of my log. [image: image] https://user-images.githubusercontent.com/35810628/245105621-1952b80e-68be-46b8-a144-4a51d17c8c6f.png I tried to install it two times — Reply to this email directly, view it on GitHub <#122 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OAT3Q5MS6MXC3DVH5DXK3S5DANCNFSM6AAAAAAZDEFESI . You are receiving this because you commented.Message ID: @. com> -- Vinod Surendran R vinodsr.dev

[info] Node-RED version: v2.2.1
[info] Node.js  version: v18.16.0
vinodsr commented 1 year ago

In the recent version, I had made the minimum node red version as 2.5.0, please upgrade to 2.5.0

On Mon, 12 Jun 2023 at 3:44 PM, Elia @.***> wrote:

Can you please share your nodejs version and node red version On Mon, 12 Jun 2023 at 3:37 PM, Elia @.> wrote: No, these are all the lines. I can show you a screenshot of my log. [image: image] https://user-images.githubusercontent.com/35810628/245105621-1952b80e-68be-46b8-a144-4a51d17c8c6f.png https://user-images.githubusercontent.com/35810628/245105621-1952b80e-68be-46b8-a144-4a51d17c8c6f.png I tried to install it two times — Reply to this email directly, view it on GitHub <#122 (comment) https://github.com/vinodsr/node-red-contrib-tuya-smart-device/issues/122#issuecomment-1587014407>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OAT3Q5MS6MXC3DVH5DXK3S5DANCNFSM6AAAAAAZDEFESI https://github.com/notifications/unsubscribe-auth/AADQ6OAT3Q5MS6MXC3DVH5DXK3S5DANCNFSM6AAAAAAZDEFESI . You are receiving this because you commented.Message ID: @. com> -- Vinod Surendran R vinodsr.dev

12 Jun 12:12:57 - [info] Node-RED version: v2.2.1 12 Jun 12:12:57 - [info] Node.js version: v18.16.0

— Reply to this email directly, view it on GitHub https://github.com/vinodsr/node-red-contrib-tuya-smart-device/issues/122#issuecomment-1587026802, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OB6F4HZNX5TONA5U6TXK3TYDANCNFSM6AAAAAAZDEFESI . You are receiving this because you commented.Message ID: @.*** com>

-- Vinod Surendran R vinodsr.dev

elyonardo commented 1 year ago

In the recent version, I had made the minimum node red version as 2.5.0, please upgrade to 2.5.0 On Mon, 12 Jun 2023 at 3:44 PM, Elia @.> wrote: Can you please share your nodejs version and node red version On Mon, 12 Jun 2023 at 3:37 PM, Elia @.> wrote: No, these are all the lines. I can show you a screenshot of my log. [image: image] https://user-images.githubusercontent.com/35810628/245105621-1952b80e-68be-46b8-a144-4a51d17c8c6f.png https://user-images.githubusercontent.com/35810628/245105621-1952b80e-68be-46b8-a144-4a51d17c8c6f.png I tried to install it two times — Reply to this email directly, view it on GitHub <#122 (comment) <#122 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OAT3Q5MS6MXC3DVH5DXK3S5DANCNFSM6AAAAAAZDEFESI https://github.com/notifications/unsubscribe-auth/AADQ6OAT3Q5MS6MXC3DVH5DXK3S5DANCNFSM6AAAAAAZDEFESI . You are receiving this because you commented.Message ID: @. com> -- Vinod Surendran R vinodsr.dev 12 Jun 12:12:57 - [info] Node-RED version: v2.2.1 12 Jun 12:12:57 - [info] Node.js version: v18.16.0 — Reply to this email directly, view it on GitHub <#122 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OB6F4HZNX5TONA5U6TXK3TYDANCNFSM6AAAAAAZDEFESI . You are receiving this because you commented.Message ID: @. com> -- Vinod Surendran R vinodsr.dev

Thank you @vinodsr. Now it's working. I hadn't noticed I had an old node-red version

hannoverRed commented 1 year ago

hallo, was ist bei mir der Fehler?

`----------------------------------------------------------- 2023-06-14T19:02:13.984Z Installieren : node-red-contrib-tuya-smart-device 5.2.0

2023-06-14T19:02:14.167Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-tuya-smart-device@5.2.0 2023-06-14T19:02:16.944Z [err] npm 2023-06-14T19:02:16.947Z [err] WARN config production Use --omit=dev instead. 2023-06-14T19:02:26.056Z [err] npm 2023-06-14T19:02:26.057Z [err] ERR! code EBADENGINE 2023-06-14T19:02:26.071Z [err] npm ERR! 2023-06-14T19:02:26.072Z [err] engine Unsupported engine 2023-06-14T19:02:26.072Z [err] npm ERR! 2023-06-14T19:02:26.073Z [err] engine Not compatible with your version of node/npm: node-red-contrib-tuya-smart-device@5.2.0 2023-06-14T19:02:26.073Z [err] npm ERR! notsup Not compatible with your version of node/npm: node-red-contrib-tuya-smart-device@5.2.0 2023-06-14T19:02:26.075Z [err] npm ERR! notsup Required: {"node":">=16.0.0"} 2023-06-14T19:02:26.075Z [err] npm ERR! notsup Actual: {"npm":"8.18.0","node":"v14.16.0"} 2023-06-14T19:02:26.085Z [err] 2023-06-14T19:02:26.086Z [err] npm 2023-06-14T19:02:26.087Z [err] ERR! A complete log of this run can be found in: 2023-06-14T19:02:26.087Z [err] npm ERR! /usr/local/addons/redmatic/var/npm-cache/_logs/2023-06-14T19_02_16_767Z-debug-0.log 2023-06-14T19:02:26.173Z rc=1 `

lg

hannoverRed commented 1 year ago

0 verbose cli /usr/local/addons/redmatic/bin/node /usr/local/addons/redmatic/bin/npm 1 info using npm@8.18.0 2 info using node@v14.16.0 3 timing npm:load:whichnode Completed in 2ms 4 timing config:load:defaults Completed in 9ms 5 timing config:load:file:/usr/local/addons/redmatic/lib/node_modules/npm/npmrc Completed in 4ms 6 timing config:load:builtin Completed in 5ms 7 warn config production Use --omit=dev instead. 8 timing config:load:cli Completed in 16ms 9 timing config:load:env Completed in 2ms 10 timing config:load:file:/usr/local/addons/redmatic/var/.npmrc Completed in 1ms 11 timing config:load:project Completed in 58ms 12 timing config:load:file:/usr/local/addons/redmatic/home/.npmrc Completed in 0ms 13 timing config:load:user Completed in 2ms 14 timing config:load:file:/usr/local/addons/redmatic/etc/npmrc Completed in 7ms 15 timing config:load:global Completed in 7ms 16 timing config:load:validate Completed in 2ms 17 timing config:load:credentials Completed in 4ms 18 timing config:load:setEnvs Completed in 5ms 19 timing config:load Completed in 116ms 20 timing npm:load:configload Completed in 116ms 21 timing npm:load:mkdirpcache Completed in 5ms 22 timing npm:load:mkdirplogs Completed in 2ms 23 verbose title npm install node-red-contrib-tuya-smart-device@5.2.0 24 verbose argv "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix" "~" "--production" "--engine-strict" "node-red-contrib-tuya-smart-device@5.2.0" 25 timing npm:load:setTitle Completed in 10ms 26 timing config:load:flatten Completed in 17ms 27 timing npm:load:display Completed in 31ms 28 verbose logfile logs-max:10 dir:/usr/local/addons/redmatic/var/npm-cache/_logs 29 verbose logfile /usr/local/addons/redmatic/var/npm-cache/_logs/2023-06-14T19_34_04_134Z-debug-0.log 30 timing npm:load:logFile Completed in 31ms 31 timing npm:load:timers Completed in 0ms 32 timing npm:load:configScope Completed in 0ms 33 timing npm:load Completed in 203ms 34 timing arborist:ctor Completed in 5ms 35 silly logfile start cleaning logs, removing 1 files 36 silly logfile done cleaning log files 37 timing idealTree:init Completed in 3789ms 38 timing idealTree:userRequests Completed in 39ms 39 silly idealTree buildDeps 40 silly fetch manifest node-red-contrib-tuya-smart-device@5.2.0 41 timing arborist:ctor Completed in 1ms 42 http fetch GET 200 https://registry.npmjs.org/node-red-contrib-tuya-smart-device 3792ms (cache revalidated) 43 silly placeDep ROOT node-red-contrib-tuya-smart-device@5.2.0 REPLACE for: node-red-project@0.0.1 want: 5.2.0 44 timing idealTree:#root Completed in 3859ms 45 timing idealTree:node_modules/node-red-contrib-tuya-smart-device Completed in 1ms 46 timing idealTree:buildDeps Completed in 3866ms 47 timing idealTree:fixDepFlags Completed in 146ms 48 timing idealTree Completed in 7929ms 49 timing command:install Completed in 7970ms 50 verbose stack Error: Unsupported engine 50 verbose stack at checkEngine (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/npm-install-checks/lib/index.js:14:25) 50 verbose stack at c (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:246:7) 50 verbose stack at Arborist.[checkEngine] (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:249:7) 50 verbose stack at Arborist.[checkEngineAndPlatform] (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:233:27) 50 verbose stack at Arborist.buildIdealTree (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:221:42) 50 verbose stack at async Promise.all (index 1) 50 verbose stack at async Arborist.reify (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:154:5) 50 verbose stack at async Install.exec (/usr/local/addons/redmatic/lib/node_modules/npm/lib/commands/install.js:145:5) 50 verbose stack at async module.exports (/usr/local/addons/redmatic/lib/node_modules/npm/lib/cli.js:78:5) 51 verbose pkgid node-red-contrib-tuya-smart-device@5.2.0 52 verbose cwd /usr/local/addons/redmatic/var 53 verbose Linux 6.1.19 54 verbose node v14.16.0 55 verbose npm v8.18.0 56 error code EBADENGINE 57 error engine Unsupported engine 58 error engine Not compatible with your version of node/npm: node-red-contrib-tuya-smart-device@5.2.0 59 error notsup Not compatible with your version of node/npm: node-red-contrib-tuya-smart-device@5.2.0 59 error notsup Required: {"node":">=16.0.0"} 59 error notsup Actual: {"npm":"8.18.0","node":"v14.16.0"} 60 verbose exit 1 61 timing npm Completed in 8738ms 62 verbose unfinished npm timer reify 1686771244879 63 verbose unfinished npm timer reify:loadTrees 1686771244901 64 verbose code 1 65 error A complete log of this run can be found in: 65 error /usr/local/addons/redmatic/var/npm-cache/_logs/2023-06-14T19_34_04_134Z-debug-0.log