Unable to install package
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- electron, node.js
- Lĩnh vực
- build-system, embedded-iot
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện npm install với Node 12.8.1, node-gyp 5.0.3, Electron 7.0.1 và Ubuntu 16.04, sau đó kiểm tra src/linux/BluetoothSerialPort.cc quanh InitAll và điểm vào NODE_MODULE. Được xem là hoàn tất khi gói node-bluetooth cài đặt thành công mà không gặp các lỗi build C++ đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C++
- Star
- 205
- Fork
- 56
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lsongdev/node-bluetooth
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
lsongdev/node-bluetooth#61 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
lsongdev/node-bluetooth#60 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
lsongdev/node-bluetooth#57 · 1 bình luận · 2 reaction ·
-
Maintenance status?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 10/100
lsongdev/node-bluetooth#55 · 8 bình luận ·
-
Battery status?Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
lsongdev/node-bluetooth#54 · 1 bình luận ·
Tất cả issue của lsongdev/node-bluetooth
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
grumpycoders/pcsx-redux#2171 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
bytedance/trae-agent#524 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update OPENEXR_IMATH_TAGĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
AcademySoftwareFoundation/openexr#2683 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
microsoft/onnxruntime#32881 ·
Maintainer thường phản hồi trong vòng 1 ngày