質問編集履歴

2

変更

2019/10/29 07:49

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -62,6 +62,114 @@
62
62
 
63
63
  ```
64
64
 
65
+ npm install
66
+
67
+
68
+
69
+ ```
70
+
71
+ $ npm install
72
+
73
+
74
+
75
+ > usb@1.6.0 install /home/pi/Desktop/kenkyu/raspi/rssi/node_modules/usb
76
+
77
+ > prebuild-install --verbose || node-gyp rebuild
78
+
79
+
80
+
81
+ prebuild-install info begin Prebuild-install version 5.3.2
82
+
83
+ prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/d16678-usb-v1.6.0-node-v57-linux-arm.tar.gz
84
+
85
+ prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.0/usb-v1.6.0-node-v57-linux-arm.tar.gz
86
+
87
+ prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.6.0/usb-v1.6.0-node-v57-linux-arm.tar.gz
88
+
89
+ prebuild-install WARN install No prebuilt binaries found (target=8.9.4 runtime=node arch=arm libc= platform=linux)
90
+
91
+ make: ディレクトリ '/home/pi/Desktop/kenkyu/raspi/rssi/node_modules/usb/build' に入ります
92
+
93
+ CC(target) Release/obj.target/libusb/libusb/libusb/core.o
94
+
95
+ CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
96
+
97
+ CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
98
+
99
+ CC(target) Release/obj.target/libusb/libusb/libusb/io.o
100
+
101
+ CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
102
+
103
+ CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
104
+
105
+ CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
106
+
107
+ CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
108
+
109
+ CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
110
+
111
+ CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
112
+
113
+ ../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: そのようなファイルやディレクトリはありません
114
+
115
+ #include <libudev.h>
116
+
117
+ ^
118
+
119
+ compilation terminated.
120
+
121
+ libusb.target.mk:132: ターゲット 'Release/obj.target/libusb/libusb/libusb/os/linux_udev.o' のレシピで失敗しました
122
+
123
+ make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] エラー 1
124
+
125
+ make: ディレクトリ '/home/pi/Desktop/kenkyu/raspi/rssi/node_modules/usb/build' から出ます
126
+
127
+ gyp ERR! build error
128
+
129
+ gyp ERR! stack Error: `make` failed with exit code: 2
130
+
131
+ gyp ERR! stack at ChildProcess.onExit (/home/pi/.nodebrew/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
132
+
133
+ gyp ERR! stack at emitTwo (events.js:126:13)
134
+
135
+ gyp ERR! stack at ChildProcess.emit (events.js:214:7)
136
+
137
+ gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
138
+
139
+ gyp ERR! System Linux 4.14.98-v7+
140
+
141
+ gyp ERR! command "/home/pi/.nodebrew/node/v8.9.4/bin/node" "/home/pi/.nodebrew/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
142
+
143
+ gyp ERR! cwd /home/pi/Desktop/kenkyu/raspi/rssi/node_modules/usb
144
+
145
+ gyp ERR! node -v v8.9.4
146
+
147
+ gyp ERR! node-gyp -v v3.6.2
148
+
149
+ gyp ERR! not ok
150
+
151
+ npm WARN noble_lesson@1.0.0 No description
152
+
153
+ npm WARN noble_lesson@1.0.0 No repository field.
154
+
155
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.0 (node_modules/usb):
156
+
157
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.0 install: `prebuild-install --verbose || node-gyp rebuild`
158
+
159
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
160
+
161
+
162
+
163
+ up to date in 42.583s
164
+
165
+
166
+
167
+ ```
168
+
169
+
170
+
171
+
172
+
65
173
 
66
174
 
67
175
  ### 該当のソースコード

1

変更

2019/10/29 07:49

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -74,9 +74,9 @@
74
74
 
75
75
 
76
76
 
77
- const noble = require('noble-mac');
77
+ //const noble = require('noble-mac');
78
-
78
+
79
- //const noble = require('noble'); //npm install nobleをする必要あり
79
+ const noble = require('noble'); //npm install nobleをする必要あり
80
80
 
81
81
  const fs = require('fs');
82
82