Armadilloフォーラム

CC2650STKのデータ取得

yishigaki

2018年3月7日 20時29分

お世話になっております。

Armadillo-IoT G3とCC2650STK(TI製)をbluetooth接続し、センサーデータの取得を行いたいです。

https://users.atmark-techno.com/blog/1914/2362
上記の開発者ブログを参照いたしておりますが、

armadillo:~/sensor-test$ npm install noble

でnobleのinstallを行うと以下のエラーが出ます。

node-pre-gyp ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings…
node-pre-gyp ERR! Pre-built binaries not found for usb@1.3.1 and node@4.0.0 (node-v46 ABI, glibc) (falling back to source compile with node-gyp)

参照先のGitHubのアドレスが無効になっていることが原因と考えているのですが、
対策等あればご教示頂けないでしょうか?

よろしくお願いいたします。

コメント

at_hanada

2018年3月14日 15時47分

花田です。
手元で確認しておらず、調べた情報のみですが…

> armadillo:~/sensor-test$ npm install noble
>
> でnobleのinstallを行うと以下のエラーが出ます。
>
> node-pre-gyp ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings…
> node-pre-gyp ERR! Pre-built binaries not found for usb@1.3.1 and node@4.0.0 (node-v46 ABI, glibc) (falling back to source compile with node-gyp)

ご推察の通りlinux-arm用のpre-buildが用意されていないことによるもののようで、とりあえずエラーを無視(skip)させて

$ npm install -g --unsafe-perm noble

などとして回避しているケースが多いようです。

参考)
https://github.com/noble/noble/issues/707
https://github.com/noble/noble/issues/740