bash-4.4# apk add build-base gcc abuild binutils binutils-doc gcc-doc g++ (1/29) Installing fakeroot (1.22-r0) (2/29) Installing sudo (1.8.23-r2) (3/29) Installing libcap (2.25-r1) (4/29) Installing pax-utils (1.2.3-r0) (5/29) Installing libressl (2.7.4-r0) (6/29) Installing libattr (2.4.47-r7) (7/29) Installing attr (2.4.47-r7) (8/29) Installing tar (1.30-r0) (9/29) Installing patch (2.7.6-r2) (10/29) Installing lzip (1.20-r0) (11/29) Installing curl (7.61.1-r1) (12/29) Installing abuild (3.2.0-r0) Executing abuild-3.2.0-r0.pre-install (13/29) Installing binutils (2.30-r5) (14/29) Installing binutils-doc (2.30-r5) (15/29) Installing libmagic (5.32-r0) (16/29) Installing file (5.32-r0) (17/29) Installing gmp (6.1.2-r1) (18/29) Installing isl (0.18-r0) (19/29) Installing libgomp (6.4.0-r9) (20/29) Installing libatomic (6.4.0-r9) (21/29) Installing mpfr3 (3.1.5-r1) (22/29) Installing mpc1 (1.0.3-r1) (23/29) Installing gcc (6.4.0-r9) (24/29) Installing musl-dev (1.1.19-r10) (25/29) Installing libc-dev (0.7.1-r0) (26/29) Installing g++ (6.4.0-r9) (27/29) Installing fortify-headers (0.9-r0) (28/29) Installing build-base (0.5-r1) (29/29) Installing gcc-doc (6.4.0-r9) Executing busybox-1.28.4-r1.trigger OK: 362 MiB in 76 packages bash-4.4# rm -rf node_modules && npm install > serialport@6.2.2 install /app/node_modules/serialport > prebuild-install || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=8.14.0 runtime=node arch=x64 platform=linux) make: Entering directory '/app/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o ../src/serialport.cpp: In function 'void EIO_AfterOpen(uv_work_t*)': ../src/serialport.cpp:95:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function 'void EIO_AfterUpdate(uv_work_t*)': ../src/serialport.cpp:150:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function 'void EIO_AfterClose(uv_work_t*)': ../src/serialport.cpp:188:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function 'void EIO_AfterFlush(uv_work_t*)': ../src/serialport.cpp:231:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function 'void EIO_AfterSet(uv_work_t*)': ../src/serialport.cpp:285:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function 'void EIO_AfterGet(uv_work_t*)': ../src/serialport.cpp:336:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function 'void EIO_AfterGetBaudRate(uv_work_t*)': ../src/serialport.cpp:383:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function 'void EIO_AfterDrain(uv_work_t*)': ../src/serialport.cpp:424:30: warning: 'v8::Local Nan::Callback::Call(int, v8::Local*) const' is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../nan/nan.h:1674:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ CXX(target) Release/obj.target/serialport/src/serialport_unix.o ../src/serialport_unix.cpp:24:26: fatal error: linux/serial.h: No such file or directory ^ compilation terminated. make: *** [serialport.target.mk:104: Release/obj.target/serialport/src/serialport_unix.o] Error 1 make: Leaving directory '/app/node_modules/serialport/build' 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 emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.15.0-43-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /app/node_modules/serialport gyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@6.2.2 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-01-15T20_12_27_480Z-debug.log