ottoszika / node-red-contrib-ewelink

NodeRED nodes for eWeLink smart devices
https://ottoszika.github.io/node-red-contrib-ewelink
MIT License
48 stars 28 forks source link

Unable to install with Node.js version 13 #114

Open harish-jachak opened 3 years ago

harish-jachak commented 3 years ago

I am trying to install this through Palette Manager. My Node-Red is on an Android phone with node.js version 13.

Following is the log.


2021-01-14T16:13:20.244Z Install : node-red-contrib-ewelink 2.0.0

2021-01-14T16:13:18.117Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-ewelink@2.0.0 2021-01-14T16:13:25.974Z [err] npm 2021-01-14T16:13:25.975Z [err] WARN npm npm does not support Node.js v13.0.0 2021-01-14T16:13:25.975Z [err] npm 2021-01-14T16:13:25.975Z [err] WARN 2021-01-14T16:13:25.975Z [err] npm You should probably upgrade to a newer version of node as we 2021-01-14T16:13:25.976Z [err] npm 2021-01-14T16:13:25.976Z [err] WARN npm 2021-01-14T16:13:25.976Z [err] can't make any promises that npm will work with this version. 2021-01-14T16:13:25.976Z [err] npm 2021-01-14T16:13:25.977Z [err] WARN 2021-01-14T16:13:25.977Z [err] npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12. 2021-01-14T16:13:25.977Z [err] npm 2021-01-14T16:13:25.977Z [err] WARN 2021-01-14T16:13:25.978Z [err] npm You can find the latest version at https://nodejs.org/ 2021-01-14T16:13:42.327Z [err] npm ERR! 2021-01-14T16:13:42.328Z [err] code ENOENT 2021-01-14T16:13:42.328Z [err] npm ERR! syscall spawn git 2021-01-14T16:13:42.328Z [err] npm ERR! 2021-01-14T16:13:42.328Z [err] path git 2021-01-14T16:13:42.329Z [err] npm ERR! 2021-01-14T16:13:42.329Z [err] errno -2 2021-01-14T16:13:42.334Z [err] npm ERR! enoent 2021-01-14T16:13:42.335Z [err] Error while executing: 2021-01-14T16:13:42.335Z [err] npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 2021-01-14T16:13:42.335Z [err] npm ERR! 2021-01-14T16:13:42.335Z [err] enoent 2021-01-14T16:13:42.335Z [err] npm 2021-01-14T16:13:42.335Z [err] ERR! enoent 2021-01-14T16:13:42.335Z [err]
2021-01-14T16:13:42.335Z [err] npm 2021-01-14T16:13:42.336Z [err] ERR! enoent spawn git ENOENT 2021-01-14T16:13:42.336Z [err] npm 2021-01-14T16:13:42.336Z [err] ERR! enoent 2021-01-14T16:13:42.336Z [err] This is related to npm not being able to find a file. 2021-01-14T16:13:42.336Z [err] npm 2021-01-14T16:13:42.336Z [err] ERR! enoent 2021-01-14T16:13:42.370Z [err] 2021-01-14T16:13:42.370Z [err] npm ERR! A complete log of this run can be found in: 2021-01-14T16:13:42.371Z [err] npm ERR! /data/data/com.termux/files/home/.npm/_logs/2021-01-14T16_13_42_343Z-debug.log 2021-01-14T16:13:42.437Z rc=254

FreekBos commented 3 years ago

I have more or less the same:

2021-01-26T18:33:53.393Z Install : node-red-contrib-ewelink 2.0.0

2021-01-26T18:33:53.441Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-ewelink@2.0.0 2021-01-26T18:33:56.468Z [err] npm ERR! code ENOENT 2021-01-26T18:33:56.468Z [err] npm ERR! syscall 2021-01-26T18:33:56.468Z [err] spawn git 2021-01-26T18:33:56.468Z [err] npm ERR! 2021-01-26T18:33:56.468Z [err] path 2021-01-26T18:33:56.468Z [err] git 2021-01-26T18:33:56.468Z [err] npm 2021-01-26T18:33:56.468Z [err] ERR! 2021-01-26T18:33:56.468Z [err] errno ENOENT 2021-01-26T18:33:56.470Z [err] npm 2021-01-26T18:33:56.471Z [err] ERR! enoent Error while executing: 2021-01-26T18:33:56.471Z [err] npm 2021-01-26T18:33:56.471Z [err] ERR! enoent 2021-01-26T18:33:56.471Z [err] undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 2021-01-26T18:33:56.471Z [err] npm 2021-01-26T18:33:56.471Z [err] ERR! 2021-01-26T18:33:56.471Z [err] enoent 2021-01-26T18:33:56.471Z [err]
2021-01-26T18:33:56.471Z [err] npm ERR! 2021-01-26T18:33:56.471Z [err] enoent 2021-01-26T18:33:56.471Z [err]
2021-01-26T18:33:56.471Z [err] npm 2021-01-26T18:33:56.471Z [err] ERR! 2021-01-26T18:33:56.471Z [err] enoent 2021-01-26T18:33:56.471Z [err] spawn git ENOENT 2021-01-26T18:33:56.471Z [err] npm 2021-01-26T18:33:56.471Z [err] ERR! 2021-01-26T18:33:56.471Z [err] enoent 2021-01-26T18:33:56.471Z [err] This is related to npm not being able to find a file. 2021-01-26T18:33:56.471Z [err] npm 2021-01-26T18:33:56.471Z [err] ERR! 2021-01-26T18:33:56.472Z [err] enoent 2021-01-26T18:33:56.472Z [err]
2021-01-26T18:33:56.505Z [err] 2021-01-26T18:33:56.505Z [err] npm ERR! A complete log of this run can be found in: 2021-01-26T18:33:56.505Z [err] npm 2021-01-26T18:33:56.505Z [err] ERR! /root/snap/node-red/630/.npm/_logs/2021-01-26T18_33_56_473Z-debug.log 2021-01-26T18:33:56.510Z rc=1

It's a CentOS8 system and NodeRed runs fine. This' the first "problem" I have. Anyone a solution? Many thanks in advance.

harish-jachak commented 3 years ago

@FreekBos Same problem with me on Raspberry Pi Zero W. Found the solution here - https://github.com/ottoszika/node-red-contrib-ewelink/issues/103#issuecomment-751729352