node-red-contrib-ewelink icon indicating copy to clipboard operation
node-red-contrib-ewelink copied to clipboard

Program fails to install from Node-RED palette

Open husseymj opened this issue 4 years ago • 53 comments

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

husseymj avatar Nov 08 '20 12:11 husseymj

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

alphabravocharly72 avatar Nov 22 '20 21:11 alphabravocharly72

Hi I have encounter the same issue.

itbrl99 avatar Nov 26 '20 06:11 itbrl99

New version 2.0 deployed is still not working.

itbrl99 avatar Nov 26 '20 06:11 itbrl99

Can you please share me some logs / screenshots?

ottoszika avatar Nov 26 '20 09:11 ottoszika


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 [email protected] 2020-11-26T12:08:17.707Z [err] npm 2020-11-26T12:08:17.707Z [err] WARN deprecated [email protected]: 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] > [email protected] 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! [email protected] 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 [email protected] 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 avatar Nov 26 '20 12:11 itbrl99

image

itbrl99 avatar Nov 26 '20 12:11 itbrl99

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.

ottoszika avatar Nov 26 '20 12:11 ottoszika

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

itbrl99 avatar Nov 26 '20 13:11 itbrl99

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

ottoszika avatar Nov 26 '20 14:11 ottoszika

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

itbrl99 avatar Nov 26 '20 16:11 itbrl99

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

meshall555 avatar Nov 27 '20 08:11 meshall555

3 silly saveTree +-- [email protected] 33 silly saveTree +-- [email protected] 33 silly saveTree +-- [email protected] 33 silly saveTree `-- [email protected] 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://[email protected]/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 ]

meshall555 avatar Nov 27 '20 22:11 meshall555

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??

djpole avatar Nov 28 '20 12:11 djpole

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 '[email protected]' 1 verbose cli ] 2 info using [email protected] 3 info using [email protected] 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 [email protected] 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 [email protected] 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 [email protected] checking installable status 20 silly fetchPackageMetaData error for arpping@github:skydiver/arpping Error while executing: 20 silly fetchPackageMetaData undefined ls-remote -h -t ssh://[email protected]/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 [email protected] 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 [email protected] checking installable status 30 silly pacote range manifest for websocket-as-promised@^1.0.1 fetched in 739ms 31 silly resolveWithNewModule [email protected] checking installable status 32 silly pacote range manifest for random@^2.2.0 fetched in 769ms 33 silly resolveWithNewModule [email protected] checking installable status 34 silly pacote range manifest for delay@^4.4.0 fetched in 795ms 35 silly resolveWithNewModule [email protected] checking installable status 36 timing stage:rollbackFailedOptional Completed in 5ms 37 timing stage:runTopLevelLifecycles Completed in 5071ms 38 silly saveTree [email protected] 38 silly saveTree ├─┬ [email protected] 38 silly saveTree │ ├─┬ [email protected] 38 silly saveTree │ │ ├── [email protected] 38 silly saveTree │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ │ └── [email protected] 38 silly saveTree │ │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ │ │ ├── [email protected] 38 silly saveTree │ │ │ │ │ └─┬ [email protected] 38 silly saveTree │ │ │ │ │ └── [email protected] 38 silly saveTree │ │ │ │ └─┬ [email protected] 38 silly saveTree │ │ │ │ └── [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ └─┬ [email protected] 38 silly saveTree │ │ │ └─┬ [email protected] 38 silly saveTree │ │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ │ ├── [email protected] 38 silly saveTree │ │ │ │ └── [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ └── [email protected] 38 silly saveTree │ │ ├── [email protected] 38 silly saveTree │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ └── [email protected] 38 silly saveTree │ │ ├── [email protected] 38 silly saveTree │ │ └─┬ [email protected] 38 silly saveTree │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ ├── [email protected] 38 silly saveTree │ │ │ └── [email protected] 38 silly saveTree │ │ └── [email protected] 38 silly saveTree │ ├─┬ [email protected] 38 silly saveTree │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ ├─┬ [email protected] 38 silly saveTree │ │ │ │ └── [email protected] 38 silly saveTree │ │ │ └─┬ [email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├─┬ @protobufjs/[email protected] 38 silly saveTree │ │ │ │ └── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @protobufjs/[email protected] 38 silly saveTree │ │ │ ├── @types/[email protected] 38 silly saveTree │ │ │ ├── @types/[email protected] 38 silly saveTree │ │ │ └── [email protected] 38 silly saveTree │ │ └─┬ [email protected] 38 silly saveTree │ │ └── [email protected] 38 silly saveTree │ └─┬ [email protected] 38 silly saveTree │ └─┬ [email protected] 38 silly saveTree │ ├── [email protected] 38 silly saveTree │ └── [email protected] 38 silly saveTree ├─┬ [email protected] 38 silly saveTree │ └─┬ [email protected] 38 silly saveTree │ ├── [email protected] 38 silly saveTree │ ├── [email protected] 38 silly saveTree │ ├── [email protected] 38 silly saveTree │ ├── [email protected] 38 silly saveTree │ └── [email protected] 38 silly saveTree ├─┬ [email protected] 38 silly saveTree │ ├── @influxdata/[email protected] 38 silly saveTree │ ├── [email protected] 38 silly saveTree │ └── [email protected] 38 silly saveTree └── [email protected] 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" "[email protected]" 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://[email protected]/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 avatar Dec 02 '20 13:12 cw-kid

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

image

cw-kid avatar Dec 02 '20 14:12 cw-kid

Download windows build tools and try again

meshall555 avatar Dec 02 '20 23:12 meshall555

Download windows build tools and try again

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

cw-kid avatar Dec 02 '20 23:12 cw-kid

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 avatar Dec 03 '20 07:12 itbrl99

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.

itbrl99 avatar Dec 03 '20 08:12 itbrl99

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.

cw-kid avatar Dec 03 '20 10:12 cw-kid

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

itbrl99 avatar Dec 03 '20 11:12 itbrl99

you must access the container (not a directory)

How do I do that ?

Thanks

cw-kid avatar Dec 03 '20 11:12 cw-kid

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 avatar Dec 03 '20 11:12 itbrl99

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

itbrl99 avatar Dec 03 '20 11:12 itbrl99

I'm not using Docker just a Raspberry Pi.

cw-kid avatar Dec 03 '20 11:12 cw-kid

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 [email protected] 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://[email protected]/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`

cw-kid avatar Dec 03 '20 11:12 cw-kid

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!

oferbar avatar Dec 05 '20 13:12 oferbar

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 [email protected] 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://[email protected]/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 [email protected] 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://[email protected]/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?

joel-77 avatar Dec 06 '20 14:12 joel-77

I have the same issue as everyone here.

  • My setup is a Raspberry PI Zero with DietPi.
  • Node-Red is working fine with many Palettes installed from base
  1. Trying to install from Node-Red image
  • Same error log as posted above
  1. 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://[email protected]/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

  2. 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.

  3. 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://[email protected]/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 avatar Dec 10 '20 20:12 SimonFili

I tried this: npm install -save arpping (install worked) Since the error line was : undefined ls-remote -h -t ssh://[email protected]/skydiver/arpping.git

Did not help ;-( - Same error

SimonFili avatar Dec 10 '20 20:12 SimonFili