skip to Main Content

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


  1. Chosen as BEST ANSWER

    This is what i finally did and it worked.

    1.i installed node scripts using the follwoing command:

    npm install react-scripts --save
    
    1. Then;

      composer update

    3.i then installed npm;

    npm install
    

    4: then i run the dev command and it worked.

    npm run dev
    

  2. A simple reinstall of packages did the trick for me:

    rm node_modules/ -rf
    npm install
    
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search