Failed for upgrade sockte.io

Hi

Current socket.io version is 0.9.16 in Licode. I want use newest 

version 1.3.7. but I can’t building successfully.
Could you help give some guidance for upgrade socket.io to newest
version?

my steps for upgrade:
firstly, I download newest socket.io, and replace directory socket.io 

in node_module
second, change below command in file ‘installErizo_controller.sh’

  • npm install --loglevel error amqp socket.io@1.3.7 log4js node-getopt*
lastly,  rebuild licode with below command:
#cd licode/scripts
#./installErizo.sh


After that failed logs:

Installing erizoController…[erizo_controller] Installing node_modules
for erizo_controller> utf-8-validate@1.2.1 install
/shcodede_modules/socket.iode_modules/engine.iode_modulesde_modules/utf-8-validate>
node-gyp rebuildgyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: Cannot
find module 'path-array’gyp ERR! stack at
Function.Module._resolveFilename (module.js:338:15)gyp ERR! stack at
Function.Module._load (module.js:280:25)gyp ERR! stack at
Module.require (module.js:364:17)gyp ERR! stack at require
(module.js:380:17)gyp ERR! stack at Object.
(/usrbde_modulesde-gypb/configure.js:16:17)gyp ERR! stack at
Module._compile (module.js:456:26)gyp ERR! stack at
Object.Module._extensions…js (module.js:474:10)gyp ERR! stack at
Module.load (module.js:356:32)gyp ERR! stack at Function.Module._load
(module.js:312:12)gyp ERR! stack at Module.require
(module.js:364:17)gyp ERR! System Linux 2.6.32-279.el6.x86_64gyp ERR!
command “node” “/usrbde_modules/npmde_modulesde-gyp/binde-gyp.js”
"rebuild"gyp ERR! cwd
/shcodede_modules/socket.iode_modules/engine.iode_modulesde_modules/utf-8-validategyp
ERR! node -v v0.10.36gyp ERR! node-gyp -v v3.0.3gyp ERR! This is a bug in
node-gyp.gyp ERR! Try to update node-gyp and file an Issue if it does not
help:gyp ERR! https://github.com/nodejs/node-gyp/issues