Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

node-red-node-pi-mcp3008 - Failed to install

Aperta
#953 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, nodejs, raspberry-pi

Direzione di ricerca

Inizia riproducendo l’installazione npm di node-red-node-pi-mcp3008 o mcp-spi-adc sul Raspberry Pi segnalato, usando l’output di spi-device node-gyp rebuild come punto di partenza. Esamina lo script di installazione di spi-device e la configurazione del compilatore; il lavoro è completato quando la dipendenza e node-red-node-pi-mcp3008 vengono installati correttamente nella configurazione Node.js e Linux segnalata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi,

I tried to install node-red-node-pi-mcp3008, but it failed.

  • run sudo raspi-config and enabled SPI interface -> rebooted
  • changed to ~/.node-red
  • npm install node-red-node-pi-mcp3008 -> got error similar as showed below
  • also tried to install its dependency npm install mcp-spi-adc

Got following error messages:

pi@xxx:~/.node-red $ npm install mcp-spi-adc

> [email protected] install /home/pi/.node-red/node_modules/spi-device
> node-gyp rebuild

make: Verzeichnis „/home/pi/.node-red/node_modules/spi-device/build“ wird betreten
  CXX(target) Release/obj.target/spi/src/spi.o
cc1plus: error: unrecognized argument in option ‘-mfloat-abi=hard’
cc1plus: note: valid arguments to ‘-mfloat-abi=’ are:   softfp
cc1plus: error: unrecognized argument in option ‘-mfpu=vfp’
cc1plus: note: valid arguments to ‘-mfpu=’ are: auto crypto-neon-fp-armv8 fp-armv8 fpv4-sp-d16 fpv5-d16 fpv5-sp-d16 neon-fp-armv8 neon-fp16 neon-vfpv3 neon-vfpv4  vfp3 vfpv2 vfpv3 vfpv3-d16 vfpv3-d16-fp16 vfpv3-fp16 vfpv3xd vfpv3xd-fp16 vfpv4 vfpv4-d16; did you mean ‘vfp3’?
make: *** [spi.target.mk:119: Release/obj.target/spi/src/spi.o] Fehler 1
make: Verzeichnis „/home/pi/.node-red/node_modules/spi-device/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Linux 5.10.103-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/spi-device
gyp ERR! node -v v14.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2022-09-27T21_09_54_305Z-debug.log

On my Raspberry Pi 3B I have installed:

node-red -v
27 Sep 23:30:02 - [info]

Willkommen bei Node-RED!
===================

27 Sep 23:30:02 - [info] Node-RED Version: v2.0.6
27 Sep 23:30:02 - [info] Node.js  Version: v14.20.1
27 Sep 23:30:02 - [info] Linux 5.10.103-v7+ arm LE

Any suggestions how to solve this issue?
Thanks.

Lingua principale
JavaScript
Stelle
1.1k
Fork
612
Merge medio
13h 57m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di node-red/node-red-nodes

Tutte le issue di node-red/node-red-nodes

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.