make: *** [Release/obj.target/magic/src/magic.o] ���� 1
make: Leaving directory `/home/nodebb/node_modules/mmmagic/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-431.23.3.el6.i686
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/nodebb/node_modules/mmmagic
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdhuff.o
npm ERR! weird error 1
Odd indeed.
Try installing newer 0.12.7 node from source *** AS ROOT *** (assuming you are x64 here):
yum -y update
yum -y groupinstall "Development Tools"
cd /usr/src
wget https://nodejs.org/download/release/latest-v0.12.x/node-v0.12.7-linux-x64.tar.gz
tar zxf node-v0.12.7-linux-x64.tar.gz
cd node-v0.12.7-linux-x64
./configure
make
make install
Check it's installed and the version is correct afterwards with
node -v
Then:
cd /your/nodebb/installation
sudo rm -rf node_modules
npm install