Q&A
■内容
node.js/npm/node-gypをインストールしたAmazon Linux2にLog.ioをインストールしようと
しておりますがなかなかうまく行かないことがあるので、ご教授願いたく質問させていただきます。
ログio
http://logio.org/
https://cloudpack.media/10804
■環境
cat /etc/system-release
Amazon Linux release 2 (Karoo)
node -v
v10.16.3
npm -v
6.9.0
node-gyp -v
v5.0.3
上記の環境に以下のコマンドでLog.ioをインストールしようとするとエラーとなりインストールできません。
■エラーログ
sudo npm install -g log.io --user "root"
npm WARN deprecated jquery@1.8.3: Versions of the jquery npm package older than 1.9.0 are patched versions that don't work in web browsers. Please upgrade to >=1.11.0. npm WARN deprecated coffee-script@1.4.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN deprecated connect@2.7.2: connect 2.x series is deprecated /usr/bin/log.io-server -> /usr/lib/node_modules/log.io/bin/log.io-server /usr/bin/log.io-harvester -> /usr/lib/node_modules/log.io/bin/log.io-harvester > contextify@0.1.15 install /usr/lib/node_modules/log.io/node_modules/contextify > node-gyp rebuild ---Snip--- gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Linux 4.14.33-59.37.amzn2.x86_64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/log.io/node_modules/contextify 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! contextify@0.1.15 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the contextify@0.1.15 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-19T07_07_01_157Z-debug.log