Armadilloフォーラム

node-red-node-serialportインストールについて

suga

2019年8月29日 18時11分

お世話になっております。菅原と申します。

Armadillo-640にて以下を参考にNode-REDにnode-red-node-serialportをインストールしたいのですが
エラーとなりノード追加できません。
https://users.atmark-techno.com/blog/53/3986

環境は以下の通りで
 Node-RED version: v0.20.7
 Node.js version: v10.16.3
 Linux 4.14-at13 arm LE

エラーログは以下の通りです。

29 Aug 17:05:32 - [info] モジュールnode-red-node-serialport, バージョン: 0.8.3 をインストールします
29 Aug 17:06:40 - [warn] モジュール node-red-node-serialport のインストールに失敗しました:
29 Aug 17:06:40 - [warn] ------------------------------------------
29 Aug 17:06:40 - [warn] prebuild-install WARN install No prebuilt binaries found (target=10.16.3 runtime=node arch=arm libc= platform=linux)
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Linux 4.14-at13
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/.node-red/node_modules/@serialport/bindings
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @serialport/bindings@2.0.8 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @serialport/bindings@2.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-08-29T08_06_40_518Z-debug.log

29 Aug 17:06:40 - [warn]

大変お手数ですが解決策のご教示のほど何卒宜しくお願い致します。

コメント

suga

2019年8月30日 10時16分

連投失礼いたします。菅原です。

こちら解決いたしました。

apt-get install build-essential
の実行後にインストールできるようになりました。

勘違いでしたら恐縮ですが、ご報告させていただきます。

以上です。