【いつか役立つ!Amazon DashButtonで作った~】
https://ics.media/entry/15342/3
を参考にして、npm install まで実行しました。
しかし、”Amazon Dash Buttonを監視するには、Amazon Dash ButtonのMacアドレスの指定が必要です。次のコマンドを実行してMacアドレスを調べます。”
Script/find_button
実行した結果
Linux
1module.js:549 2 throw err; 3 4Error:Cannot find module '/home/[ユーザー名]/dasher/node_modules/node-dash-button/bin/findbutton' 5 at Functon.Module.resolveFilename(module.js:547:15) 6 at Function.Module.load(module.js:474:25) 7 at Function.Module.runMain(module.js:693:10) 8..... 9
動かし方がわかる方教えて頂けないでしょうか?よろしくお願いします。
ubuntu 16.04
バーチャルボックスから起動しています。
ご指摘して頂いた部分の修正しました。
npm install の際にエラーが出てしまいました。お答えいただける助かります。
Linux
1> socketwatcher@0.3.0 install /home/k/dasher/node_modules/socketwatcher 2> node-gyp rebuild 3 4make: ディレクトリ '/home/k/dasher/node_modules/socketwatcher/build' に入ります 5 CXX(target) Release/obj.target/socketwatcher/socket_watcher.o 6../socket_watcher.cpp: In static member function ‘static void SocketWatcher::Callback(uv_poll_t*, int, int)’: 7../socket_watcher.cpp:77:60: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] 8 Nan::MakeCallback(watcher->handle(), callback, argc, argv); 9 ^ 10In file included from ../socket_watcher.hpp:8:0, 11 from ../socket_watcher.cpp:5: 12../../nan/nan.h:959:46: note: declared here 13 NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( 14 ^~~~~~~~~~~~ 15 SOLINK_MODULE(target) Release/obj.target/socketwatcher.node 16 COPY Release/socketwatcher.node 17make: ディレクトリ '/home/ユーザー名/dasher/node_modules/socketwatcher/build' から出ます 18 19> pcap@2.1.0 install /home/ユーザー名/dasher/node_modules/pcap 20> node-gyp rebuild 21 22make: ディレクトリ '/home/ユーザー名/dasher/node_modules/pcap/build' に入ります 23 CXX(target) Release/obj.target/pcap_binding/pcap_binding.o 24../pcap_binding.cc:2:10: fatal error: pcap/pcap.h: そのようなファイルやディレクトリはありません 25 #include <pcap/pcap.h> 26 ^~~~~~~~~~~~~ 27compilation terminated. 28pcap_binding.target.mk:96: recipe for target 'Release/obj.target/pcap_binding/pcap_binding.o' failed 29make: *** [Release/obj.target/pcap_binding/pcap_binding.o] Error 1 30make: ディレクトリ '/home/ユーザー名/dasher/node_modules/pcap/build' から出ます 31gyp ERR! build error 32gyp ERR! stack Error: `make` failed with exit code: 2 33gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:258:23) 34gyp ERR! stack at emitTwo (events.js:126:13) 35gyp ERR! stack at ChildProcess.emit (events.js:214:7) 36gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) 37gyp ERR! System Linux 4.15.0-20-generic 38gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild" 39gyp ERR! cwd /home/k/dasher/node_modules/pcap 40gyp ERR! node -v v8.10.0 41gyp ERR! node-gyp -v v3.6.2 42gyp ERR! not ok 43npm ERR! Linux 4.15.0-20-generic 44npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" 45npm ERR! node v8.10.0 46npm ERR! npm v3.5.2 47npm ERR! code ELIFECYCLE 48 49npm ERR! pcap@2.1.0 install: `node-gyp rebuild` 50npm ERR! Exit status 1 51npm ERR! 52npm ERR! Failed at the pcap@2.1.0 install script 'node-gyp rebuild'. 53npm ERR! Make sure you have the latest version of node.js and npm installed. 54npm ERR! If you do, this is most likely a problem with the pcap package, 55npm ERR! not with npm itself. 56npm ERR! Tell the author that this fails on your system: 57npm ERR! node-gyp rebuild 58npm ERR! You can get information on how to open an issue for this project with: 59npm ERR! npm bugs pcap 60npm ERR! Or if that isn't available, you can get their info via: 61npm ERR! npm owner ls pcap 62npm ERR! There is likely additional logging output above. 63 64npm ERR! Please include the following file with any support request: 65npm ERR! /home/ユーザー名/dasher/npm-debug.log 66
回答1件
あなたの回答
tips
プレビュー