Closed JsExpertCoder closed 4 weeks ago
the reason is the Breeze starter kit which excludes or doesn't even bring the "package.json" and "node_modules", so the node dependency installation fails during Laravel Reverb configuration
Wouldn't it already be possible to run --without-node
? and you should already be prompt to run node installation.
Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel to open up a new issue if you're still experiencing this.
Reverb Version
@beta
Laravel Version
^11.9
PHP Version
^8.2
Description
When installing Laravel Reverb via the
php artisan install:broadcasting
command, the installation process fails at the Node dependency installation step. The error message indicates a missing script: "build". This issue prevents the completion of the broadcasting setup. Additionally, neither the package.json file nor the node_modules folder is created during this process.Steps To Reproduce
Steps To Reproduce
Observed Behavior:
The installation proceeds until the Node dependencies are being installed. The process stops with the following error message: npm ERR! Missing script: "build" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run
npm ERR! A complete log of this run can be found in: parth_to_logs WARN Node dependency installation failed. Please run the following commands manually: npm install --save-dev laravel-echo pusher-js && npm run build.
Expected Behavior:
The Node dependencies should be installed successfully, and the broadcasting setup should complete without any errors.