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 PusherPusher
. So I tried to run install pusher using the following command: composer require pusherpusher-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*
2
Answers
This is what i finally did and it worked.
1.i installed node scripts using the follwoing command:
Then;
composer update
3.i then installed npm;
4: then i run the dev command and it worked.
A simple reinstall of packages did the trick for me: