node-pocketsphinx icon indicating copy to clipboard operation
node-pocketsphinx copied to clipboard

npm install fails with node 7.2 and 8.0

Open 821760408-sp opened this issue 9 years ago • 5 comments

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:

log.txt

Seemed to be a problem with "cmake-js compile" ?

821760408-sp avatar Dec 03 '16 00:12 821760408-sp

What is your node version?

nshmyrev avatar Dec 06 '16 16:12 nshmyrev

node version is 7.2.0 npm is 3.10.9

821760408-sp avatar Dec 06 '16 20:12 821760408-sp

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.

nshmyrev avatar Dec 06 '16 21:12 nshmyrev

Latest PR is at https://github.com/swig/swig/pull/968

nshmyrev avatar Jul 12 '17 19:07 nshmyrev

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)

highvoltage379 avatar Feb 22 '18 14:02 highvoltage379