M
M
Maxim Globak2015-09-17 16:43:06
Node.js
Maxim Globak, 2015-09-17 16:43:06

I get an error when installing Socket.IO on Mac OS, how to solve?

make: *** [Release/obj.target/validation/src/validation.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
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 Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/aleksandr/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]

There are 9 such errors in a row, I don’t understand what’s wrong, I reinstalled node-gyp, bufferutil, utf-8-validate, python

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Gamula, 2015-09-18
@maximglobak

I think the problem is in node 4.0.0, I recommend installing nvm and using version 0.12

M
Maxim Globak, 2015-09-18
@maximglobak

sudo npm install nvm
nvm download 0.12.7
nvm build 0.12.7
sudo npm install 0.12.7
node -v // Check node version
npm install socket.io -save

S
seth2810, 2015-09-24
@seth2810

Not all libraries have yet been ported to node v.4.0, so it's too early to use it now, socket.io is one of those libraries...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question