Unable to install package
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- electron, node.js
- Bereich
- build-system, embedded-iot
Rechercherichtung
Beginnen Sie damit, die npm install mit Node 12.8.1, node-gyp 5.0.3, Electron 7.0.1 und Ubuntu 16.04 zu reproduzieren. Untersuchen Sie anschließend src/linux/BluetoothSerialPort.cc im Bereich von InitAll und des NODE_MODULE-Einstiegspunkts. Als erledigt gilt die Aufgabe, wenn das node-bluetooth-Paket ohne die gemeldeten C++-Buildfehler erfolgreich installiert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
> [email protected] 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 [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp configure build`
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.
OS - Ubuntu 16.04
Node - 12.8.1
NPM - 6.10.2
Electron JS - 7.0.1
Node-gyp - 5.0.3
- Vorherrschende Sprache
- C++
- Sterne
- 205
- Forks
- 56
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus lsongdev/node-bluetooth
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
lsongdev/node-bluetooth#61 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
lsongdev/node-bluetooth#60 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
lsongdev/node-bluetooth#57 · 1 Kommentar · 2 Reaktionen ·
-
Maintenance status?Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 10/100
lsongdev/node-bluetooth#55 · 8 Kommentare ·
-
Battery status?Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
lsongdev/node-bluetooth#54 · 1 Kommentar ·
Alle Issues in lsongdev/node-bluetooth
Ähnliche Issues
-
Broken links in the docsOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
microsoft/onnxruntime#33018 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
customer-reported needs-triage question
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Azure/azure-sdk-for-cpp#7435 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ChromieCraft Generic Confirmed World Event
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
azerothcore/azerothcore-wotlk#27882 ·
Maintainer antworten meist innerhalb von 1 Tag
-
MacOS build failureOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
aristocratos/btop#1874 ·
Maintainer antworten meist innerhalb von 1 Tag