node-serialport: fix issues with node 8.11.3
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 8 Aug 2018 15:07:34 +0000 (12:07 -0300)
committerEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 8 Aug 2018 17:42:47 +0000 (14:42 -0300)
commit93d6d1b3c85ac486244d7be91b615fd9c79bdaad
treeec21649f88d3ca4743b0eb7a98651dfaafcdc9db
parent1e0720e3f71a032201c9a5bdff6bfb869ff549d3
node-serialport: fix issues with node 8.11.3

Get node version from node executable instead of keeping it hardcoded to
the Makefile.

Current version of npm install installs a link to the build directory.
The workaround is to use npm pack to make a tarball and install from
that.
npm also adds useless metadata to package.json exposing
PKG_BUILD_DIR, so it needs to be stripped.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
lang/node-serialport/Makefile