StatsD metrics collector: error if run "dpkg -i statsd*.deb" on Ubuntu 16.04
Opened this issue · 0 comments
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