npm install fails with node 7.2 and 8.0
Hi,
I have the latest sphinxbase and pocketsphinx installed from github, also PKG_CONFIG_PATH is set to /usr/local/lib/pkgconfig.
I have cmake of version 3.7.1 and SWIG of Version 3.0.10.
When I tried to do npm install pocketsphinx it gave the following error:
Seemed to be a problem with "cmake-js compile" ?
What is your node version?
node version is 7.2.0 npm is 3.10.9
Swig does not support node 7 yet, see for details https://github.com/swig/swig/issues/825
You could try node 5 or, probably, wait till the swig issue is resolved.
Latest PR is at https://github.com/swig/swig/pull/968
I managed to install node-pocketsphinx with node version 9.0.0 (should work with 7.x and 8.x as well). This pull request https://github.com/swig/swig/pull/968 corrects the bug. Apparently, they don't want to merge with master yet, but it works.
(I had some trouble in finding the actual repo that contains the pull request, here's the link: https://github.com/swig/swig/tree/f08d7a63a92a3ba89d97bdfcc206e1e1c4804c0f)