I have been trying to use pusher in my application. I started receiving this error after I created the PusherFactory, as shown on the screenshot. But, I have been receiving the error undefined type Pusher\Pusher. So I tried to run install pusher using the following command: composer require pusher\pusher-php-server.
After all that, when I try to run npm install && npm run dev, I now get this error:
> dev
> vite
sh: 1: vite: Permission denied
patrick@patrick-nthiwa:~/Music/primecrm/prime$ sudo npm run dev
[sudo] password for patrick:
*
sh: 1: vite: Permission denied*
A simple re-installing of packages did the trick for me:
rm -rf node_modules/
npm install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With