Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fail on Jessie #28

Closed
paulgeringer opened this issue Jan 16, 2017 · 2 comments
Closed

npm install fail on Jessie #28

paulgeringer opened this issue Jan 16, 2017 · 2 comments

Comments

@paulgeringer
Copy link

This is very similar to #5 (though my french is a bit rusty). I was hitting the following error when running npm install:

> ioctl@1.0.1 install /home/retropie/node-virtual-gamepads/node_modules/ioctl
> node-gyp rebuild

make: Entering directory '/home/retropie/node-virtual-gamepads/node_modules/ioctl/build'
  CXX(target) Release/obj.target/ioctl/src/ioctl.o
In file included from ../src/ioctl.cpp:3:0:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
   static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
                                               ^
ioctl.target.mk:82: recipe for target 'Release/obj.target/ioctl/src/ioctl.o' failed
make: *** [Release/obj.target/ioctl/src/ioctl.o] Error 1
make: Leaving directory '/home/retropie/node-virtual-gamepads/node_modules/ioctl/build'

The solution was to upgrade node-gyp to the latest version (found nodejs/nan#414), after which npm install worked without errors.

Not sure if there is anything to change with this project's setup, but I'm adding this issue just so anyone else who runs into this issue has a solution.

@robsdedude
Copy link
Collaborator

Would you be so kind to create a PR, adding this hint to TROUBLESHOOTING.md?

@robsdedude
Copy link
Collaborator

Closing this. I added a hint in TROUBLESHOOTING.md to check the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants