npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

NPM + Linux imx6qsabresd 3.14.28 ARMv7l + serialport


For several dozen hours I have been struggling with the installation of the “serialport” module.
At the time of installation, I am dropping the error:

prebuild-install WARN install No prebuilt binaries found (target=11.6.0 runtime=node arch=arm platform=linux)
Traceback (most recent call last):
File “/opt/node-v11.6.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/gyp/”, line 13, in
import gyp
File “/opt/node-v11.6.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/”, line 8, in
import gyp.input
File “/opt/node-v11.6.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/”, line 13, in
import gyp.common
File “/opt/node-v11.6.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/”, line 9, in
import filecmp
ImportError: No module named filecmp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/opt/node-v11.6.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:188:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 3.14.28
gyp ERR! command “/opt/node-v11.6.0-linux-armv7l/bin/node” “/opt/node-v11.6.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /home/root/node_modules/@serialport/bindings
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! errno 1
npm ERR! @serialport/bindings@2.0.6 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.6 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! /home/root/.npm/_logs/2019-01-18T11_31_15_902Z-debug.log

NPM i Node.js installed manually as below:

tar xf node-v11.6.0-linux-armv7l

sudo mv node-v11.6.0-linux-armv7l /opt/
cd /usr/bin/

sudo ln -s /opt/node-v11.6.0-linux-armv7l/bin/node node
sudo ln -s /opt/node-v11.6.0-linux-armv7l/bin/npm npm

Can someone help me?