Unable to install package
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- electron, node.js
- Ambito
- build-system, embedded-iot
Direzione di ricerca
Inizia riproducendo l' npm install con Node 12.8.1, node-gyp 5.0.3, Electron 7.0.1 e Ubuntu 16.04, quindi esamina src/linux/BluetoothSerialPort.cc intorno a InitAll e al punto di ingresso NODE_MODULE. Il lavoro è completato quando il pacchetto node-bluetooth viene installato correttamente senza gli errori di compilazione C++ segnalati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Working on an Electron JS app for linux.
Followed the installation process given in about page, getting following errors while installing the package unable to proceed further.
> node-bluetooth@1.2.6 install /home/user/Documents/electronjs/bluetooth_test/node_modules/node-bluetooth
> node-gyp configure build
make: Entering directory '/home/user/Documents/electronjs/bluetooth_test/node_modules/node-bluetooth/build'
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o
../src/linux/BluetoothSerialPort.cc:18:14: error: variable or field ‘InitAll’ declared void
void InitAll(Handle<Object> exports) {
^
../src/linux/BluetoothSerialPort.cc:18:14: error: ‘Handle’ was not declared in this scope
../src/linux/BluetoothSerialPort.cc:18:27: error: expected primary-expression before ‘>’ token
void InitAll(Handle<Object> exports) {
^
../src/linux/BluetoothSerialPort.cc:18:29: error: ‘exports’ was not declared in this scope
void InitAll(Handle<Object> exports) {
^
In file included from ../src/linux/BluetoothSerialPort.cc:12:0:
../src/linux/BluetoothSerialPort.cc:23:34: error: ‘InitAll’ was not declared in this scope
NODE_MODULE(BluetoothSerialPort, InitAll)
^
/home/user/.cache/node-gyp/12.8.1/include/node/node.h:556:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc), \
^
../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(BluetoothSerialPort, InitAll)
^
BluetoothSerialPort.target.mk:115: recipe for target 'Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o' failed
make: *** [Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o] Error 1
make: Leaving directory '/home/user/Documents/electronjs/bluetooth_test/node_modules/node-bluetooth/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/user/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-66-generic
gyp ERR! command "/home/user/.nvm/versions/node/v12.8.1/bin/node" "/home/user/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/user/Documents/electronjs/bluetooth_test/node_modules/node-bluetooth
gyp ERR! node -v v12.8.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm WARN bluetooth_test@1.0.0 No description
npm WARN bluetooth_test@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-bluetooth@1.2.6 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-bluetooth@1.2.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
OS - Ubuntu 16.04
Node - 12.8.1
NPM - 6.10.2
Electron JS - 7.0.1
Node-gyp - 5.0.3
- Lingua principale
- C++
- Stelle
- 205
- Fork
- 56
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lsongdev/node-bluetooth
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
lsongdev/node-bluetooth#61 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
lsongdev/node-bluetooth#60 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
lsongdev/node-bluetooth#57 · 1 commento · 2 reazioni ·
-
Maintenance status? Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 10/100
lsongdev/node-bluetooth#55 · 8 commenti ·
-
Battery status? Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
lsongdev/node-bluetooth#54 · 1 commento ·
Tutte le issue di lsongdev/node-bluetooth
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ros2/message_filters#338 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
subsurface/subsurface#4984 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·