node-hid: fix issues with node 8.11.3
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 8 Aug 2018 15:06:56 +0000 (12:06 -0300)
committerEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 8 Aug 2018 17:42:03 +0000 (14:42 -0300)
commit1e0720e3f71a032201c9a5bdff6bfb869ff549d3
tree8fabd67f7f943406994c1cd954f976ba9fee5cd5
parent56fe5581e49648e6644311f0166f7ab1505f2e00
node-hid: 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-hid/Makefile