Hi,
I'm not entirely sure if this is the correct place to ask this, but I'm not sure where else to ask.
I have installed NodeRed on a RPi, as I'd like to use it to do some signal processing, and pass values to/from Arduino IoT, but I'm getting an error trying to install the module through NodeRed's Pallette Manager.
This is the error from the NodeRed log -
2022-10-29T19:40:44.919Z Install : @arduino/node-red-contrib-arduino-iot-cloud 1.0.7
2022-10-29T19:40:44.494Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict @arduino/node-red-contrib-arduino-iot-cloud@1.0.7
2022-10-29T19:40:45.559Z [err] npm
2022-10-29T19:40:45.560Z [err]
2022-10-29T19:40:45.560Z [err] WARN config production Use
--omit=dev
instead.2022-10-29T19:41:02.007Z [err] npm
2022-10-29T19:41:02.007Z [err] ERR! code ENOENT
2022-10-29T19:41:02.008Z [err] npm
2022-10-29T19:41:02.008Z [err] ERR! syscall spawn git
2022-10-29T19:41:02.008Z [err] npm ERR!
2022-10-29T19:41:02.008Z [err] path git
2022-10-29T19:41:02.009Z [err] npm ERR!
2022-10-29T19:41:02.010Z [err] errno -2
2022-10-29T19:41:02.013Z [err] npm ERR!
2022-10-29T19:41:02.013Z [err] enoent An unknown git error occurred
2022-10-29T19:41:02.013Z [err] npm ERR!
2022-10-29T19:41:02.013Z [err] enoent This is related to npm not being able to find a file.
2022-10-29T19:41:02.013Z [err] npm ERR! enoent
2022-10-29T19:41:02.016Z [err]
2022-10-29T19:41:02.016Z [err] npm
2022-10-29T19:41:02.016Z [err] ERR!
2022-10-29T19:41:02.017Z [err] A complete log of this run can be found in:
2022-10-29T19:41:02.017Z [err] npm ERR! /home/pi/.npm/_logs/2022-10-29T19_40_45_503Z-debug-0.log
2022-10-29T19:41:02.032Z rc=254
And this is the end of the log file -
805 silly placeDep ROOT yallist@4.0.0 OK for: lru-cache@6.0.0 want: ^4.0.0
806 timing idealTree:node_modules/lru-cache Completed in 3ms
807 timing idealTree:node_modules/yallist Completed in 0ms
808 timing idealTree:node_modules/ws/node_modules/safe-buffer Completed in 0ms
809 timing idealTree:buildDeps Completed in 18618ms
810 timing idealTree:fixDepFlags Completed in 7ms
811 timing idealTree Completed in 18744ms
812 timing command:install Completed in 18760ms
813 verbose stack Error: An unknown git error occurred
813 verbose stack at makeError (/usr/lib/node_modules/npm/node_modules/@npmcli/git/lib/make-error.js:28:13)
813 verbose stack at /usr/lib/node_modules/npm/node_modules/@npmcli/git/lib/spawn.js:37:26
813 verbose stack at processTicksAndRejections (node:internal/process/task_queues:96:5)
814 verbose cwd /home/pi/.node-red
815 verbose Linux 5.15.61-v7l+
816 verbose node v16.18.0
817 verbose npm v8.19.2
818 error code ENOENT
819 error syscall spawn git
820 error path git
821 error errno -2
822 error enoent An unknown git error occurred
823 error enoent This is related to npm not being able to find a file.
823 error enoent
824 verbose exit -2
825 timing npm Completed in 19069ms
826 verbose unfinished npm timer reify 1667071561714
Does anybody have any suggestions?