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

Problem during npm install #21

Closed
gvader opened this issue Dec 29, 2016 · 6 comments
Closed

Problem during npm install #21

gvader opened this issue Dec 29, 2016 · 6 comments

Comments

@gvader
Copy link

gvader commented Dec 29, 2016

I am on Ubuntu 16.10 with newest node.js. Had problem with build as below:

gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:304:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.8.0-32-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/gvader/Projects/msi-keyboard-gui/node_modules/nslog
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
@stephenlacy
Copy link
Owner

What are your versions:

node:
npm:
libusb:

I noticed this similar issue (error 127) nodejs/node-gyp#223
I have not yet come across this error though.

@gvader
Copy link
Author

gvader commented Dec 30, 2016

Hi @stevelacy

Thanks for quick anwser. Versions are as below:

libusb-0.1-4:amd64:  2:0.1.12-30
libusb-1.0-0:amd64:  2:1.0.20-1
libusb-dev:   2:0.1.12-30
npm:  3.5.2-0ubuntu4
nodejs:  4.2.6~dfsg-1ubuntu5
nodejs-dev:  4.2.6~dfsg-1ubuntu5

@stephenlacy
Copy link
Owner

stephenlacy commented Dec 30, 2016

Please install node v6+ as that is mosylikely the problem, then re-install the project's dependencies.

rm -rf node_modules && npm i

https://github.com/stevelacy/msi-keyboard-gui#nodejs-6-is-required

@stephenlacy
Copy link
Owner

Updates?

@stephenlacy
Copy link
Owner

Could you do this:

git pull
rm -rf node_modules
npm install
sudo npm start

@stephenlacy
Copy link
Owner

Just published a release: https://github.com/stevelacy/msi-keyboard-gui/releases/tag/0.1.3
Can you confirm that the binary does run correctly, and if not the errors it produces?
Thanks

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

No branches or pull requests

2 participants