Can't Install socket.io in Laravel Vagrant Homestead -


problem can't install socket.io in laravel vagrant homestead. bellow error thrown.

command npm install socket.io

error

    > ws@0.5.0 install /home/vagrant/code/dota2/nodejs/node_modules/socket.io/node_m     odules/engine.io/node_modules/ws     > (node-gyp rebuild 2> builderror.log) || (exit 0)      make: entering directory `/home/vagrant/code/dota2/nodejs/node_modules/socket.io     /node_modules/engine.io/node_modules/ws/build'       cxx(target) release/obj.target/bufferutil/src/bufferutil.o       solink_module(target) release/obj.target/bufferutil.node       solink_module(target) release/obj.target/bufferutil.node: finished       copy release/bufferutil.node       cxx(target) release/obj.target/validation/src/validation.o       solink_module(target) release/obj.target/validation.node       solink_module(target) release/obj.target/validation.node: finished       copy release/validation.node     make: leaving directory `/home/vagrant/code/dota2/nodejs/node_modules/socket.io/     node_modules/engine.io/node_modules/ws/build'     npm err! error: unknown, symlink '../ws/bin/wscat'     npm err! if need help, may report *entire* log,     npm err! including npm , node versions, at:     npm err!     <http://github.com/npm/npm/issues>      npm err! system linux 3.13.0-30-generic     npm err! command "/usr/bin/node" "/usr/bin/npm" "install"     npm err! cwd /home/vagrant/code/dota2/nodejs     npm err! node -v v0.10.32     npm err! npm -v 1.4.28     npm err! path ../ws/bin/wscat     npm err! code unknown     npm err! errno -1     npm err! not ok code 0 

vagrant/homestead virtual machine can't handle binary links.

instead of

npm install socket.io 

use

npm install socket.io --no-bin-links 

Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -