Open SIDMSZ opened 2 years ago
me too
npm ERR! code 1
npm ERR! path /home/pi/.node-red/node_modules/@gfcittolin/usb
npm ERR! command failed
npm ERR! command sh -c -- node-gyp-build
npm ERR! make: Entering directory '/home/pi/.node-red/node_modules/@gfcittolin/usb/build'
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/core.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/io.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
npm ERR! CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
npm ERR! make: Leaving directory '/home/pi/.node-red/node_modules/@gfcittolin/usb/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/pi/.node-red/node_modules/@gfcittolin/usb/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/pi/.cache/node-gyp/16.18.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/pi/.cache/node-gyp/16.18.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/pi/.cache/node-gyp/16.18.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/pi/.node-red/node_modules/@gfcittolin/usb',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
npm ERR! 40 | #include ~~
npm ERR! compilation terminated.
npm ERR! make: *** [libusb.target.mk:150: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make
failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.15.74-v7l+
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/pi/.node-red/node_modules/@gfcittolin/usb
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
i am installing the nod-red-conrib-mpi-s7 but it does not install while generate the below error log
2022-05-15T08:41:52.519Z Install : node-red-contrib-mpi-s7 1.0.0-beta.1
2022-05-15T08:41:52.523Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-mpi-s7@1.0.0-beta.1 2022-05-15T08:41:53.507Z [err] npm 2022-05-15T08:41:53.508Z [err] WARN config production Use
--omit=dev
instead. 2022-05-15T08:41:55.162Z [err] npm ERR! 2022-05-15T08:41:55.162Z [err] code ENOENT 2022-05-15T08:41:55.162Z [err] npm ERR! syscall spawn git 2022-05-15T08:41:55.162Z [err] npm 2022-05-15T08:41:55.162Z [err]2022-05-15T08:41:55.163Z [err] ERR! path git 2022-05-15T08:41:55.163Z [err] npm ERR! errno -4058 2022-05-15T08:41:55.164Z [err] npm ERR! enoent An unknown git error occurred 2022-05-15T08:41:55.164Z [err] npm ERR! 2022-05-15T08:41:55.164Z [err] enoent This is related to npm not being able to find a file. 2022-05-15T08:41:55.164Z [err] npm ERR! enoent 2022-05-15T08:41:55.166Z [err] 2022-05-15T08:41:55.166Z [err] npm ERR! 2022-05-15T08:41:55.166Z [err] A complete log of this run can be found in: 2022-05-15T08:41:55.166Z [err] npm ERR! C:\Users\Shahid\AppData\Local\npm-cache_logs\2022-05-15T08_41_53_480Z-debug-0.log 2022-05-15T08:41:55.178Z rc=4294963238
Kindly help me to resolve the problem..