Answer the question
In order to leave comments, you need to log in
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]
Answer the question
In order to leave comments, you need to log in
I think the problem is in node 4.0.0, I recommend installing nvm and using version 0.12
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question