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

Program fails to install from Node-RED palette #103

Open husseymj opened 4 years ago

husseymj commented 4 years ago

Program fails to install from Node-RED palette. I have tried both this version and the copy version with the same failure result.

Ewelink is working OK in Home Assistant but won't install in Node Red

Any thoughts please

I'm running HA 0.117.5

alphabravocharly72 commented 3 years ago

Hi, I have he same issue. Any news to fix it? Thx

itbrl99 commented 3 years ago

Hi I have encounter the same issue.

itbrl99 commented 3 years ago

New version 2.0 deployed is still not working.

ottoszika commented 3 years ago

Can you please share me some logs / screenshots?

itbrl99 commented 3 years ago

2020-11-26T12:07:31.598Z Install : node-red-contrib-ewelink 2.0.0

2020-11-26T12:08:04.824Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-ewelink@2.0.0 2020-11-26T12:08:17.707Z [err] npm 2020-11-26T12:08:17.707Z [err] WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. 2020-11-26T12:08:22.087Z [out] 2020-11-26T12:08:22.087Z [out] > bufferutil@4.0.2 install /config/node-red/node_modules/bufferutil 2020-11-26T12:08:22.087Z [out] > node-gyp-build 2020-11-26T12:08:22.087Z [out] 2020-11-26T12:08:24.305Z [err] gyp 2020-11-26T12:08:24.307Z [err]
2020-11-26T12:08:24.307Z [err] ERR! 2020-11-26T12:08:24.307Z [err]
2020-11-26T12:08:24.307Z [err] build error 2020-11-26T12:08:24.308Z [err]
2020-11-26T12:08:24.309Z [err] gyp 2020-11-26T12:08:24.310Z [err]
2020-11-26T12:08:24.310Z [err] ERR! 2020-11-26T12:08:24.310Z [err]
2020-11-26T12:08:24.311Z [err] stack 2020-11-26T12:08:24.311Z [err] Error: not found: make 2020-11-26T12:08:24.311Z [err] gyp 2020-11-26T12:08:24.311Z [err]
2020-11-26T12:08:24.311Z [err] ERR! 2020-11-26T12:08:24.312Z [err]
2020-11-26T12:08:24.312Z [err] stack 2020-11-26T12:08:24.312Z [err] at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12) 2020-11-26T12:08:24.312Z [err] gyp 2020-11-26T12:08:24.312Z [err]
2020-11-26T12:08:24.313Z [err] ERR! 2020-11-26T12:08:24.313Z [err]
2020-11-26T12:08:24.313Z [err] stack 2020-11-26T12:08:24.313Z [err] at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19) 2020-11-26T12:08:24.314Z [err] gyp 2020-11-26T12:08:24.314Z [err]
2020-11-26T12:08:24.314Z [err] ERR! 2020-11-26T12:08:24.314Z [err]
2020-11-26T12:08:24.314Z [err] stack 2020-11-26T12:08:24.314Z [err] at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29) 2020-11-26T12:08:24.315Z [err] gyp 2020-11-26T12:08:24.315Z [err]
2020-11-26T12:08:24.315Z [err] ERR! 2020-11-26T12:08:24.315Z [err]
2020-11-26T12:08:24.315Z [err] stack 2020-11-26T12:08:24.315Z [err] at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16 2020-11-26T12:08:24.316Z [err] gyp 2020-11-26T12:08:24.316Z [err]
2020-11-26T12:08:24.316Z [err] ERR! 2020-11-26T12:08:24.316Z [err]
2020-11-26T12:08:24.316Z [err] stack 2020-11-26T12:08:24.316Z [err] at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 2020-11-26T12:08:24.317Z [err] gyp 2020-11-26T12:08:24.317Z [err]
2020-11-26T12:08:24.317Z [err] ERR! 2020-11-26T12:08:24.317Z [err]
2020-11-26T12:08:24.317Z [err] stack 2020-11-26T12:08:24.318Z [err] at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 2020-11-26T12:08:24.318Z [err] gyp 2020-11-26T12:08:24.318Z [err]
2020-11-26T12:08:24.318Z [err] ERR! 2020-11-26T12:08:24.318Z [err]
2020-11-26T12:08:24.319Z [err] stack 2020-11-26T12:08:24.319Z [err] at FSReqCallback.oncomplete (fs.js:168:21) 2020-11-26T12:08:24.320Z [err] gyp 2020-11-26T12:08:24.320Z [err]
2020-11-26T12:08:24.320Z [err] ERR! 2020-11-26T12:08:24.320Z [err]
2020-11-26T12:08:24.320Z [err] System 2020-11-26T12:08:24.320Z [err] Linux 4.19.127-v8 2020-11-26T12:08:24.321Z [err] gyp 2020-11-26T12:08:24.321Z [err]
2020-11-26T12:08:24.321Z [err] ERR! 2020-11-26T12:08:24.321Z [err]
2020-11-26T12:08:24.321Z [err] command 2020-11-26T12:08:24.322Z [err] "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 2020-11-26T12:08:24.322Z [err] gyp 2020-11-26T12:08:24.322Z [err]
2020-11-26T12:08:24.322Z [err] ERR! 2020-11-26T12:08:24.322Z [err]
2020-11-26T12:08:24.323Z [err] cwd 2020-11-26T12:08:24.323Z [err] /config/node-red/node_modules/bufferutil 2020-11-26T12:08:24.323Z [err] gyp 2020-11-26T12:08:24.323Z [err]
2020-11-26T12:08:24.323Z [err] ERR! 2020-11-26T12:08:24.324Z [err]
2020-11-26T12:08:24.324Z [err] node -v 2020-11-26T12:08:24.324Z [err] v12.18.4 2020-11-26T12:08:24.324Z [err] gyp 2020-11-26T12:08:24.324Z [err]
2020-11-26T12:08:24.324Z [err] ERR! 2020-11-26T12:08:24.325Z [err]
2020-11-26T12:08:24.325Z [err] node-gyp -v 2020-11-26T12:08:24.325Z [err] v5.1.0 2020-11-26T12:08:24.325Z [err] gyp 2020-11-26T12:08:24.325Z [err]
2020-11-26T12:08:24.325Z [err] ERR! 2020-11-26T12:08:24.326Z [err]
2020-11-26T12:08:24.326Z [err] not ok 2020-11-26T12:08:24.326Z [err]
2020-11-26T12:08:24.691Z [err] npm 2020-11-26T12:08:24.691Z [err] ERR! code ELIFECYCLE 2020-11-26T12:08:24.691Z [err] npm ERR! 2020-11-26T12:08:24.692Z [err] errno 1 2020-11-26T12:08:24.700Z [err] npm 2020-11-26T12:08:24.701Z [err] ERR! bufferutil@4.0.2 install: node-gyp-build 2020-11-26T12:08:24.701Z [err] npm ERR! 2020-11-26T12:08:24.701Z [err] Exit status 1 2020-11-26T12:08:24.701Z [err] npm 2020-11-26T12:08:24.701Z [err] ERR! 2020-11-26T12:08:24.701Z [err]
2020-11-26T12:08:24.701Z [err] npm ERR! 2020-11-26T12:08:24.701Z [err] Failed at the bufferutil@4.0.2 install script. 2020-11-26T12:08:24.701Z [err] npm 2020-11-26T12:08:24.701Z [err] ERR! 2020-11-26T12:08:24.701Z [err] This is probably not a problem with npm. There is likely additional logging output above. 2020-11-26T12:08:24.738Z [err] 2020-11-26T12:08:24.738Z [err] npm 2020-11-26T12:08:24.738Z [err] ERR! A complete log of this run can be found in: 2020-11-26T12:08:24.738Z [err] npm 2020-11-26T12:08:24.739Z [err] ERR! /root/.npm/_logs/2020-11-26T12_08_24_707Z-debug.log 2020-11-26T12:08:24.765Z rc=1

itbrl99 commented 3 years ago

image

ottoszika commented 3 years ago

bufferutil is a native addon and it should be compiled. You will need to install gcc and make on your server. If you are using Ubuntu, you can install those using sudo apt install build-essential.

itbrl99 commented 3 years ago

I have installed the raspberry Pi version. Will I be abele to do the install?

ottoszika commented 3 years ago

@itbrl99 Yes, just go ahead and run sudo apt install build-essential.

itbrl99 commented 3 years ago

I used the HASSIO on my Raspberry Pi and do not have the command line to run the command.

meshall555 commented 3 years ago

same issue on npm windows, do i run the same command?

meshall555 commented 3 years ago

3 silly saveTree +-- xml2js@0.4.23 33 silly saveTree +-- xmlbuilder@11.0.1 33 silly saveTree +-- xtend@4.0.2 33 silly saveTree `-- yaeti@0.0.6 34 verbose stack Error: spawn git ENOENT 34 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) 34 verbose stack at onErrorNT (internal/child_process.js:465:16) 34 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21) 35 verbose cwd C:\Users\Mesh's PC 36 verbose Windows_NT 10.0.19041 37 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\Mesh's PC\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "node-red-contrib-ewelink" 38 verbose node v14.15.1 39 verbose npm v6.14.8 40 error code ENOENT 41 error syscall spawn git 42 error path git 43 error errno -4058 44 error enoent Error while executing: 44 error enoent undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 44 error enoent 44 error enoent 44 error enoent spawn git ENOENT 45 error enoent This is related to npm not being able to find a file. 46 verbose exit [ -4058, true ]

djpole commented 3 years ago

Same problem here. I use a Pi 3 with Node-red only (no HA or others). Same red window error when trying to update in palette manager, and error trying to install trough command line. Log says something like NPM doesn´t find a file. Any other solution for this problem??

cw-kid commented 3 years ago

Can you please share me some logs / screenshots?

Hi

I am also unable to update or install node-red-contrib-ewelink in the node-red palette manager.

Here is a debug log file from my Pi

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/usr/bin/node', 1 verbose cli '/usr/bin/npm', 1 verbose cli 'install', 1 verbose cli '--no-audit', 1 verbose cli '--no-update-notifier', 1 verbose cli '--no-fund', 1 verbose cli '--save', 1 verbose cli '--save-prefix="~"', 1 verbose cli '--production', 1 verbose cli 'node-red-contrib-ewelink@2.0.0' 1 verbose cli ] 2 info using npm@6.14.8 3 info using node@v12.19.0 4 verbose npm-session 28999adae7224aea 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://registry.npmjs.org/node-red-contrib-ewelink 679ms (from cache) 8 silly pacote version manifest for node-red-contrib-ewelink@2.0.0 fetched in 769ms 9 timing stage:loadCurrentTree Completed in 2351ms 10 silly install loadIdealTree 11 silly install cloneCurrentTreeToIdealTree 12 timing stage:loadIdealTree:cloneCurrentTree Completed in 15ms 13 silly install loadShrinkwrap 14 timing stage:loadIdealTree:loadShrinkwrap Completed in 825ms 15 silly install loadAllDepsIntoIdealTree 16 silly resolveWithNewModule node-red-contrib-ewelink@2.0.0 checking installable status 17 http fetch GET 304 https://registry.npmjs.org/ewelink-api 882ms (from cache) 18 silly pacote range manifest for ewelink-api@^3.1.1 fetched in 908ms 19 silly resolveWithNewModule ewelink-api@3.1.1 checking installable status 20 silly fetchPackageMetaData error for arpping@github:skydiver/arpping Error while executing: 20 silly fetchPackageMetaData undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 20 silly fetchPackageMetaData 20 silly fetchPackageMetaData 20 silly fetchPackageMetaData spawn git ENOENT 21 http fetch GET 304 https://registry.npmjs.org/crypto-js 666ms (from cache) 22 silly pacote range manifest for crypto-js@^4.0.0 fetched in 701ms 23 silly resolveWithNewModule crypto-js@4.0.0 checking installable status 24 http fetch GET 304 https://registry.npmjs.org/websocket 677ms (from cache) 25 http fetch GET 304 https://registry.npmjs.org/websocket-as-promised 677ms (from cache) 26 http fetch GET 304 https://registry.npmjs.org/random 707ms (from cache) 27 http fetch GET 304 https://registry.npmjs.org/delay 750ms (from cache) 28 silly pacote range manifest for websocket@^1.0.32 fetched in 737ms 29 silly resolveWithNewModule websocket@1.0.32 checking installable status 30 silly pacote range manifest for websocket-as-promised@^1.0.1 fetched in 739ms 31 silly resolveWithNewModule websocket-as-promised@1.1.0 checking installable status 32 silly pacote range manifest for random@^2.2.0 fetched in 769ms 33 silly resolveWithNewModule random@2.2.0 checking installable status 34 silly pacote range manifest for delay@^4.4.0 fetched in 795ms 35 silly resolveWithNewModule delay@4.4.0 checking installable status 36 timing stage:rollbackFailedOptional Completed in 5ms 37 timing stage:runTopLevelLifecycles Completed in 5071ms 38 silly saveTree node-red-project@0.0.1 38 silly saveTree ├─┬ node-red-contrib-cast@0.2.16 38 silly saveTree │ ├─┬ bonjour@3.5.0 38 silly saveTree │ │ ├── array-flatten@2.1.2 38 silly saveTree │ │ ├─┬ deep-equal@1.1.1 38 silly saveTree │ │ │ ├── is-arguments@1.0.4 38 silly saveTree │ │ │ ├── is-date-object@1.0.2 38 silly saveTree │ │ │ ├─┬ is-regex@1.1.1 38 silly saveTree │ │ │ │ └── has-symbols@1.0.1 38 silly saveTree │ │ │ ├─┬ object-is@1.1.4 38 silly saveTree │ │ │ │ ├─┬ call-bind@1.0.0 38 silly saveTree │ │ │ │ │ ├── function-bind@1.1.1 38 silly saveTree │ │ │ │ │ └─┬ get-intrinsic@1.0.1 38 silly saveTree │ │ │ │ │ └── has@1.0.3 38 silly saveTree │ │ │ │ └─┬ define-properties@1.1.3 38 silly saveTree │ │ │ │ └── object-keys@1.1.1 38 silly saveTree │ │ │ ├── object-keys@1.1.1 38 silly saveTree │ │ │ └─┬ regexp.prototype.flags@1.3.0 38 silly saveTree │ │ │ └─┬ es-abstract@1.17.6 38 silly saveTree │ │ │ ├─┬ es-to-primitive@1.2.1 38 silly saveTree │ │ │ │ ├── is-callable@1.2.0 38 silly saveTree │ │ │ │ └── is-symbol@1.0.3 38 silly saveTree │ │ │ ├── is-callable@1.2.0 38 silly saveTree │ │ │ ├── object-inspect@1.8.0 38 silly saveTree │ │ │ ├── object.assign@4.1.0 38 silly saveTree │ │ │ ├── string.prototype.trimend@1.0.1 38 silly saveTree │ │ │ └── string.prototype.trimstart@1.0.1 38 silly saveTree │ │ ├── dns-equal@1.0.0 38 silly saveTree │ │ ├─┬ dns-txt@2.0.2 38 silly saveTree │ │ │ └── buffer-indexof@1.1.1 38 silly saveTree │ │ ├── multicast-dns-service-types@1.1.0 38 silly saveTree │ │ └─┬ multicast-dns@6.2.3 38 silly saveTree │ │ ├─┬ dns-packet@1.3.1 38 silly saveTree │ │ │ ├── ip@1.1.5 38 silly saveTree │ │ │ └── safe-buffer@5.2.1 38 silly saveTree │ │ └── thunky@1.1.0 38 silly saveTree │ ├─┬ castv2-client@1.2.0 38 silly saveTree │ │ ├─┬ castv2@0.1.10 38 silly saveTree │ │ │ ├─┬ debug@4.3.1 38 silly saveTree │ │ │ │ └── ms@2.1.2 38 silly saveTree │ │ │ └─┬ protobufjs@6.10.2 38 silly saveTree │ │ │ ├── @protobufjs/aspromise@1.1.2 38 silly saveTree │ │ │ ├── @protobufjs/base64@1.1.2 38 silly saveTree │ │ │ ├── @protobufjs/codegen@2.0.4 38 silly saveTree │ │ │ ├── @protobufjs/eventemitter@1.1.0 38 silly saveTree │ │ │ ├─┬ @protobufjs/fetch@1.1.0 38 silly saveTree │ │ │ │ └── @protobufjs/inquire@1.1.0 38 silly saveTree │ │ │ ├── @protobufjs/float@1.0.2 38 silly saveTree │ │ │ ├── @protobufjs/inquire@1.1.0 38 silly saveTree │ │ │ ├── @protobufjs/path@1.1.2 38 silly saveTree │ │ │ ├── @protobufjs/pool@1.1.0 38 silly saveTree │ │ │ ├── @protobufjs/utf8@1.1.0 38 silly saveTree │ │ │ ├── @types/long@4.0.1 38 silly saveTree │ │ │ ├── @types/node@13.13.34 38 silly saveTree │ │ │ └── long@4.0.0 38 silly saveTree │ │ └─┬ debug@2.6.9 38 silly saveTree │ │ └── ms@2.0.0 38 silly saveTree │ └─┬ google-tts-api@0.0.5 38 silly saveTree │ └─┬ isomorphic-fetch@3.0.0 38 silly saveTree │ ├── node-fetch@2.6.1 38 silly saveTree │ └── whatwg-fetch@3.5.0 38 silly saveTree ├─┬ node-red-contrib-ewelink@2.0.0 38 silly saveTree │ └─┬ ewelink-api@3.1.1 38 silly saveTree │ ├── crypto-js@4.0.0 38 silly saveTree │ ├── delay@4.4.0 38 silly saveTree │ ├── random@2.2.0 38 silly saveTree │ ├── websocket-as-promised@1.1.0 38 silly saveTree │ └── websocket@1.0.32 38 silly saveTree ├─┬ node-red-contrib-influxdb@0.5.1 38 silly saveTree │ ├── @influxdata/influxdb-client@1.8.0 38 silly saveTree │ ├── influx@5.6.3 38 silly saveTree │ └── lodash@4.17.20 38 silly saveTree └── node-red-contrib-mios@0.2.0 39 verbose stack Error: spawn git ENOENT 39 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) 39 verbose stack at onErrorNT (internal/child_process.js:469:16) 39 verbose stack at processTicksAndRejections (internal/process/task_queues.js:84:21) 40 verbose cwd /home/pi/.node-red 41 verbose Linux 5.4.72-v7+ 42 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--no-audit" "--no-update-notifier" "--no-fund" "--save" "--save-prefix=\"~\"" "--production" "node-red-contrib-ewelink@2.0.0" 43 verbose node v12.19.0 44 verbose npm v6.14.8 45 error code ENOENT 46 error syscall spawn git 47 error path git 48 error errno ENOENT 49 error enoent Error while executing: 49 error enoent undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 49 error enoent 49 error enoent 49 error enoent spawn git ENOENT 50 error enoent This is related to npm not being able to find a file. 51 verbose exit [ 1, true ]

Thank you.

cw-kid commented 3 years ago

And this is what happens at the CLI when you attempt to install it:

image

meshall555 commented 3 years ago

Download windows build tools and try again

cw-kid commented 3 years ago

Download windows build tools and try again

I'm running node red on a Raspberry Pi not Windows.

itbrl99 commented 3 years ago

pi@pi-home:~ $ sudo apt install build-essential sudo: unable to resolve host pi-home: Name or service not known Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.6). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

bufferutil is a native addon and it should be compiled. You will need to install gcc and make on your server. If you are using Ubuntu, you can install those using sudo apt install build-essential.

must this be on the container of node-red or on Pi os?

itbrl99 commented 3 years ago

bufferutil is a native addon and it should be compiled. You will need to install gcc and make on your server. If you are using Ubuntu, you can install those using sudo apt install build-essential.

I have manage to fix this. This commands must be run in the node-red container. The installation will then work normal.

cw-kid commented 3 years ago

This commands must be run in the node-red container

You mean in the /home/pi/.node-red folder ?

image

I still get this response:

build-essential is already the newest version (12.6). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

itbrl99 commented 3 years ago

This commands must be run in the node-red container

You mean in the /home/pi/.node-red folder ?

image

I still get this response:

build-essential is already the newest version (12.6). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

node-red is in virtual machine and you must access the container (not a directory) command prompt and do the installation describe in this tread

cw-kid commented 3 years ago

you must access the container (not a directory)

How do I do that ?

Thanks

itbrl99 commented 3 years ago

you must access the container (not a directory)

How do I do that ?

Thanks

https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/

itbrl99 commented 3 years ago

you must access the container (not a directory)

How do I do that ? Thanks

https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/

I use docker for my installation` is can be different from normal way

cw-kid commented 3 years ago

I'm not using Docker just a Raspberry Pi.

cw-kid commented 3 years ago

I still can't install the node. This is what I see if I try it from the Palette Manager.

`2020-12-03T11:30:26.485Z Install : node-red-contrib-ewelink 2.0.0

2020-12-03T11:30:27.523Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-ewelink@2.0.0 2020-12-03T11:30:38.001Z [err] npm 2020-12-03T11:30:38.002Z [err] ERR! code ENOENT 2020-12-03T11:30:38.002Z [err] npm ERR! syscall spawn git 2020-12-03T11:30:38.002Z [err] npm ERR! path 2020-12-03T11:30:38.002Z [err] git 2020-12-03T11:30:38.002Z [err] npm 2020-12-03T11:30:38.003Z [err] ERR! errno ENOENT 2020-12-03T11:30:38.030Z [err] npm 2020-12-03T11:30:38.031Z [err] ERR! enoent Error while executing: 2020-12-03T11:30:38.031Z [err] npm ERR! 2020-12-03T11:30:38.032Z [err] enoent undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 2020-12-03T11:30:38.032Z [err] npm ERR! 2020-12-03T11:30:38.032Z [err] enoent 2020-12-03T11:30:38.032Z [err] npm 2020-12-03T11:30:38.032Z [err] ERR! enoent 2020-12-03T11:30:38.032Z [err] npm 2020-12-03T11:30:38.033Z [err] ERR! enoent 2020-12-03T11:30:38.033Z [err] spawn git ENOENT 2020-12-03T11:30:38.033Z [err] npm 2020-12-03T11:30:38.034Z [err] ERR! enoent This is related to npm not being able to find a file. 2020-12-03T11:30:38.034Z [err] npm 2020-12-03T11:30:38.034Z [err] ERR! enoent 2020-12-03T11:30:38.060Z [err] 2020-12-03T11:30:38.060Z [err] npm ERR! A complete log of this run can be found in: 2020-12-03T11:30:38.060Z [err] npm 2020-12-03T11:30:38.061Z [err] ERR! /home/pi/.npm/_logs/2020-12-03T11_30_38_041Z-debug.log 2020-12-03T11:30:38.088Z rc=1`

oferbar commented 3 years ago

Yup, same issue here. HASSIO - Home Assistant 0.118.4 installed on rpi 4 + NODE-RED addon (7.2.11)

When trying to add the node-red-contrib-ewelink from the Manage Palette I get the same npm error as was posted above. Can't install it manually from SSH as there's no npm installed.

Currently stuck without a progress.

Thanks!

joel-77 commented 3 years ago

I have a simular issue with Ubuntu. I'm not able to install it but i already installed the build-essentials. I got this log on the Node Red UI:


2020-12-06T14:06:10.812Z Install : node-red-contrib-ewelink 2.0.0

2020-12-06T14:06:11.264Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-ewelink@2.0.0 2020-12-06T14:06:12.498Z [err] npm 2020-12-06T14:06:12.498Z [err]
2020-12-06T14:06:12.498Z [err] ERR! 2020-12-06T14:06:12.498Z [err]
2020-12-06T14:06:12.498Z [err] code 2020-12-06T14:06:12.498Z [err] ENOENT 2020-12-06T14:06:12.499Z [err] npm 2020-12-06T14:06:12.499Z [err]
2020-12-06T14:06:12.499Z [err] ERR! 2020-12-06T14:06:12.499Z [err]
2020-12-06T14:06:12.499Z [err] syscall 2020-12-06T14:06:12.499Z [err] spawn git 2020-12-06T14:06:12.499Z [err] npm 2020-12-06T14:06:12.499Z [err]
2020-12-06T14:06:12.499Z [err] ERR! 2020-12-06T14:06:12.499Z [err]
2020-12-06T14:06:12.499Z [err] path 2020-12-06T14:06:12.499Z [err] git 2020-12-06T14:06:12.499Z [err] npm 2020-12-06T14:06:12.499Z [err]
2020-12-06T14:06:12.499Z [err] ERR! 2020-12-06T14:06:12.500Z [err]
2020-12-06T14:06:12.500Z [err] errno 2020-12-06T14:06:12.500Z [err] ENOENT 2020-12-06T14:06:12.501Z [err] npm 2020-12-06T14:06:12.501Z [err]
2020-12-06T14:06:12.501Z [err] ERR! 2020-12-06T14:06:12.501Z [err]
2020-12-06T14:06:12.501Z [err] enoent 2020-12-06T14:06:12.501Z [err] Error while executing: 2020-12-06T14:06:12.501Z [err] npm 2020-12-06T14:06:12.501Z [err]
2020-12-06T14:06:12.502Z [err] ERR! 2020-12-06T14:06:12.502Z [err]
2020-12-06T14:06:12.502Z [err] enoent 2020-12-06T14:06:12.502Z [err] undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 2020-12-06T14:06:12.502Z [err] npm 2020-12-06T14:06:12.502Z [err]
2020-12-06T14:06:12.502Z [err] ERR! 2020-12-06T14:06:12.502Z [err]
2020-12-06T14:06:12.502Z [err] enoent 2020-12-06T14:06:12.502Z [err]
2020-12-06T14:06:12.502Z [err] npm 2020-12-06T14:06:12.502Z [err]
2020-12-06T14:06:12.502Z [err] ERR! 2020-12-06T14:06:12.502Z [err]
2020-12-06T14:06:12.502Z [err] enoent 2020-12-06T14:06:12.502Z [err]
2020-12-06T14:06:12.502Z [err] npm 2020-12-06T14:06:12.503Z [err]
2020-12-06T14:06:12.503Z [err] ERR! 2020-12-06T14:06:12.503Z [err]
2020-12-06T14:06:12.503Z [err] enoent 2020-12-06T14:06:12.503Z [err] spawn git ENOENT 2020-12-06T14:06:12.503Z [err] npm 2020-12-06T14:06:12.503Z [err]
2020-12-06T14:06:12.503Z [err] ERR! 2020-12-06T14:06:12.503Z [err]
2020-12-06T14:06:12.503Z [err] enoent 2020-12-06T14:06:12.503Z [err] This is related to npm not being able to find a file. 2020-12-06T14:06:12.503Z [err] npm 2020-12-06T14:06:12.503Z [err]
2020-12-06T14:06:12.503Z [err] ERR! 2020-12-06T14:06:12.503Z [err]
2020-12-06T14:06:12.503Z [err] enoent 2020-12-06T14:06:12.504Z [err]
2020-12-06T14:06:12.521Z [err] 2020-12-06T14:06:12.521Z [err] npm 2020-12-06T14:06:12.522Z [err]
2020-12-06T14:06:12.522Z [err] ERR! 2020-12-06T14:06:12.522Z [err] A complete log of this run can be found in: 2020-12-06T14:06:12.522Z [err] npm 2020-12-06T14:06:12.522Z [err]
2020-12-06T14:06:12.522Z [err] ERR! 2020-12-06T14:06:12.522Z [err] /root/snap/node-red/630/.npm/_logs/2020-12-06T14_06_12_504Z-debug.log 2020-12-06T14:06:12.531Z rc=1


2020-12-06T14:09:15.180Z Install : node-red-contrib-ewelink 2.0.0

2020-12-06T14:09:15.642Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-ewelink@2.0.0 2020-12-06T14:09:18.761Z [err] npm 2020-12-06T14:09:18.761Z [err]
2020-12-06T14:09:18.761Z [err] ERR! 2020-12-06T14:09:18.761Z [err]
2020-12-06T14:09:18.761Z [err] code 2020-12-06T14:09:18.761Z [err] ENOENT 2020-12-06T14:09:18.761Z [err] npm 2020-12-06T14:09:18.761Z [err]
2020-12-06T14:09:18.761Z [err] ERR! 2020-12-06T14:09:18.762Z [err]
2020-12-06T14:09:18.762Z [err] syscall 2020-12-06T14:09:18.762Z [err] spawn git 2020-12-06T14:09:18.762Z [err] npm 2020-12-06T14:09:18.762Z [err]
2020-12-06T14:09:18.762Z [err] ERR! 2020-12-06T14:09:18.762Z [err]
2020-12-06T14:09:18.762Z [err] path 2020-12-06T14:09:18.762Z [err] git 2020-12-06T14:09:18.762Z [err] npm 2020-12-06T14:09:18.762Z [err]
2020-12-06T14:09:18.762Z [err] ERR! 2020-12-06T14:09:18.762Z [err]
2020-12-06T14:09:18.762Z [err] errno 2020-12-06T14:09:18.763Z [err] ENOENT 2020-12-06T14:09:18.764Z [err] npm 2020-12-06T14:09:18.764Z [err]
2020-12-06T14:09:18.764Z [err] ERR! 2020-12-06T14:09:18.764Z [err]
2020-12-06T14:09:18.764Z [err] enoent 2020-12-06T14:09:18.764Z [err] Error while executing: 2020-12-06T14:09:18.764Z [err] npm 2020-12-06T14:09:18.765Z [err]
2020-12-06T14:09:18.765Z [err] ERR! 2020-12-06T14:09:18.765Z [err]
2020-12-06T14:09:18.765Z [err] enoent 2020-12-06T14:09:18.765Z [err] undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git 2020-12-06T14:09:18.765Z [err] npm 2020-12-06T14:09:18.765Z [err]
2020-12-06T14:09:18.765Z [err] ERR! 2020-12-06T14:09:18.765Z [err]
2020-12-06T14:09:18.765Z [err] enoent 2020-12-06T14:09:18.765Z [err]
2020-12-06T14:09:18.765Z [err] npm 2020-12-06T14:09:18.765Z [err]
2020-12-06T14:09:18.765Z [err] ERR! 2020-12-06T14:09:18.765Z [err]
2020-12-06T14:09:18.766Z [err] enoent 2020-12-06T14:09:18.766Z [err]
2020-12-06T14:09:18.766Z [err] npm 2020-12-06T14:09:18.766Z [err]
2020-12-06T14:09:18.766Z [err] ERR! 2020-12-06T14:09:18.766Z [err]
2020-12-06T14:09:18.766Z [err] enoent 2020-12-06T14:09:18.766Z [err] spawn git ENOENT 2020-12-06T14:09:18.766Z [err] npm 2020-12-06T14:09:18.766Z [err]
2020-12-06T14:09:18.766Z [err] ERR! 2020-12-06T14:09:18.766Z [err]
2020-12-06T14:09:18.766Z [err] enoent 2020-12-06T14:09:18.766Z [err] This is related to npm not being able to find a file. 2020-12-06T14:09:18.767Z [err] npm 2020-12-06T14:09:18.767Z [err]
2020-12-06T14:09:18.767Z [err] ERR! 2020-12-06T14:09:18.767Z [err]
2020-12-06T14:09:18.767Z [err] enoent 2020-12-06T14:09:18.767Z [err]
2020-12-06T14:09:18.794Z [err] 2020-12-06T14:09:18.794Z [err] npm 2020-12-06T14:09:18.794Z [err]
2020-12-06T14:09:18.795Z [err] ERR! 2020-12-06T14:09:18.795Z [err] A complete log of this run can be found in: 2020-12-06T14:09:18.795Z [err] npm 2020-12-06T14:09:18.795Z [err]
2020-12-06T14:09:18.795Z [err] ERR! 2020-12-06T14:09:18.795Z [err] /root/snap/node-red/630/.npm/_logs/2020-12-06T14_09_18_768Z-debug.log 2020-12-06T14:09:18.805Z rc=1

Can somebody help me?

SimonFili commented 3 years ago

I have the same issue as everyone here.

1) Trying to install from Node-Red image

2) From ssh root: root@DietPi:~# npm install node-red-contrib-ewelink npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn git npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-12-10T13_10_08_928Z-debug.log

3) Tried this: root@DietPi:~# apt install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.6). 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

4) Same error after build-essential (that was already there) root@DietPi:~# npm install node-red-contrib-ewelink npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn git npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-12-10T20_23_56_667Z-debug.log

Any more clues?

SimonFili commented 3 years ago

I tried this: npm install -save arpping (install worked) Since the error line was : undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git

Did not help ;-( - Same error

oferbar commented 3 years ago

My solution was to abandon node-red and simply use HA Automation. For sonoff I use this component which works good:

https://github.com/AlexxIT/SonoffLAN

SimonFili commented 3 years ago

FYI, there's a -copy available and it installed OK on Node-red.

node-red-contrib-ewelink-copy 1.0.1

mfelgr commented 3 years ago

I have the same problem. I am can not install this node.

I there any solution for this? Thanks,

djpole commented 3 years ago

FYI, there's a -copy available and it installed OK on Node-red.

node-red-contrib-ewelink-copy 1.0.1

Non working version because is based in the old API. Only reads the state but doesn´t change it from on to off

ottoszika commented 3 years ago

@SimonFili Do you have Git installed?

team-tech-works-uk commented 3 years ago

the problem seems obvious .. the latest update is attempting to get arping from skydivers repository using SSH - thats whats failing it seems - please resolve as this is really holding up my project - and the progress of the (excellent) API .. and many others :-(

C:\Users\graz.node-red>npm install node-red-contrib-ewelink npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -4058 npm ERR! enoent Error while executing:

********************************************************************************************

npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/skydiver/arpping.git


npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file.

mfelgr commented 3 years ago

Hello, at this moment, I have installed node.

But I have problem that node-red cannot authorize in to ewelink The password is OK. Can you help me? Bez názvu

team-tech-works-uk commented 3 years ago

Hi

are u on Version 1 (12months old) or version 2 (2-months) ??

Im on Version1 ("copy") - we cant get version 2 - latest - to load !! (ssh arping fail) :-( can you? how?

error 406 .. i did see the same .. i restarted server .. sometimes helps .. restarted computer (im using windows) .. sometimes helps .. also re-intstalled ewelink .. sometimes helps .. re-installed everything .. seems stable now

its early stage .. tempted to come back in a week or 2 when version 2 is working

cheers

On 16/12/20 17:07, mfelgr wrote:

Hello, at this moment, I have installed node.

But I have problem that node-red cannot authorize in to ewelink The password is OK. Can you help me? Bez názvu https://user-images.githubusercontent.com/21293364/102381447-86f34b80-3fc9-11eb-9a4f-7e947d7e49b0.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ottoszika/node-red-contrib-ewelink/issues/103#issuecomment-746648254, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASEGIEYAI2TIGIKULO2C3CLSVDSNTANCNFSM4TOJH4SQ.

mfelgr commented 3 years ago

I have version 2.

team-tech-works-uk commented 3 years ago

hi otto szika .. we'd all im sure really appreciate an urgent update on the 'skydiver arpping' related load failure on version 2 (v1 'copy' loads fine but lacks useful functionality) .. if u want me to test anything on my windows-10 instantiation id be happy . shout privately - cheers - graham

Dialup876 commented 3 years ago

same issue here :( hope we will get soon an update

Pd66 commented 3 years ago

Install the git. Execute:

pkg install git

Then install from the node pallete.

cw-kid commented 3 years ago

Install the git

That works !

I followed these instructions to install GIT on my Raspberry Pi and after that I was able to install again the eWeLink node and its working again.

Thanks.

Dialup876 commented 3 years ago

Install the git. Execute:

pkg install git

Then install from the node pallete.

how does this work with Home Assistant?

team-tech-works-uk commented 3 years ago

install git .. :-) .. many thanks - worked for me !! .. windows 10

stop node-red .. download https://git-scm.com/download/win .. run .. accept all 'defaults' .. relaunch node-red - install ewelink from pallete

NOTE: you'll need to remove the ewelink COPY - FIRST - if you've installed that before

SimonFili commented 3 years ago

@SimonFili Do you have Git installed?

On my Raspberry Pi Zero, 1) Installed git: apt install git

2021-04-07T22:50:35.692Z [out] > bufferutil@4.0.3 install /mnt/dietpi_userdata/node-red/node_modules/bufferutil
2021-04-07T22:50:35.692Z [out] > node-gyp-build
2021-04-07T22:50:35.692Z [out] 
2021-04-07T22:50:38.602Z [out] 
2021-04-07T22:50:38.602Z [out] > utf-8-validate@5.0.4 install /mnt/dietpi_userdata/node-red/node_modules/utf-8-validate
2021-04-07T22:50:38.602Z [out] > node-gyp-build
2021-04-07T22:50:38.602Z [out] 
2021-04-07T22:50:41.500Z [out] 
2021-04-07T22:50:41.500Z [out] > core-js@2.6.12 postinstall /mnt/dietpi_userdata/node-red/node_modules/core-js
2021-04-07T22:50:41.500Z [out] > node -e "try{require('./postinstall')}catch(e){}"
2021-04-07T22:50:41.500Z [out] 
2021-04-07T22:50:43.019Z [out] Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
2021-04-07T22:50:43.019Z [out] 
2021-04-07T22:50:43.019Z [out] The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
2021-04-07T22:50:43.019Z [out] > https://opencollective.com/core-js 
2021-04-07T22:50:43.019Z [out] > https://www.patreon.com/zloirock 
2021-04-07T22:50:43.019Z [out] 
2021-04-07T22:50:43.019Z [out] Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
2021-04-07T22:50:43.019Z [out] 
2021-04-07T22:50:50.627Z [out] + node-red-contrib-ewelink@2.0.0
2021-04-07T22:50:50.627Z [out] added 59 packages from 34 contributors in 99.968s
2021-04-07T22:50:50.708Z rc=0

It's now installed, replacing the -copy v1 version... will try it

Thanks!

arturobrzut commented 3 years ago

After hours how to install it because of errors

Yonny24 commented 3 years ago

install git .. :-) .. many thanks - worked for me !! .. windows 10

stop node-red .. download https://git-scm.com/download/win .. run .. accept all 'defaults' .. relaunch node-red - install ewelink from pallete

NOTE: you'll need to remove the ewelink COPY - FIRST - if you've installed that before

Unfortunately, that didn't work for my windows version of nodered. Still trying to fix it. Git error. file not found - when trying to add nodes .

Tangiers2020 commented 2 years ago

Any update on this i am still having these issues?

Pisgah commented 2 years ago

Install the git. Execute: apt install git Then install from the node pallete.

It works for me in RPi 3B+