I am studying the Laravel Echo Socket.js setup and after the article here
Code in bootstrap.js below
import Echo from "laravel-echo" window.Echo = new Echo({ broadcaster: 'socket.io', host: window.location.hostname + ':6001' });
When I run the above code, it says: "Cannot find module 'laravel-echo"
I do not use pusher and redis. On the link page above, I think there are no installation instructions given only for socket.io
Can someone explain if I missed something?
source share