$ npm install -g laravel-echo-server
C:\Users\mar3y\AppData\Roaming\npm\laravel-echo-server -> C:\Users\mar3y\AppData\Roaming\npm\node_modules\laravel-echo-server\bin\server.js
> spawn-sync@1.0.15 postinstall C:\Users\mar3y\AppData\Roaming\npm\node_modules\laravel-echo-server\node_modules\spawn-sync
> node postinstall
+ laravel-echo-server@1.4.2
added 233 packages and updated 1 package in 34.78s
mar3y@mar3y-PC MINGW64 /c/xampp/htdocs/chat (master)
$ laravel-echo-server init
bash: laravel-echo-server: command not found
screenshot of console