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

StatsD metrics collector: error if run "dpkg -i statsd*.deb" on Ubuntu 16.04 #3

Open
spea1 opened this issue Dec 19, 2016 · 0 comments

Comments

@spea1
Copy link

spea1 commented Dec 19, 2016

error if run "dpkg -i statsd.deb" on Ubuntu 16.04*

/bin/sh: 1: node: not found
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:354: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.4.0-31-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/share/statsd/node_modules/modern-syslog
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:modern-syslog@1.1.2 modern-syslog@1.1.2 install: node-gyp rebuild
npm WARN install:modern-syslog@1.1.2 Exit status 1

Then run the following cmd:
sudo ln -s /usr/bin/nodejs /usr/bin/node
dpkg -i statsd*.deb
systemctl enable statsd

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

1 participant