Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sh: 1: vite: Permission denied

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*
like image 333
Patrick Wambua Avatar asked Nov 23 '25 18:11

Patrick Wambua


1 Answers

A simple re-installing of packages did the trick for me:

rm -rf node_modules/
npm install
like image 179
swordsecurity Avatar answered Nov 26 '25 08:11

swordsecurity