Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

denewey's avatar

php artisan ui bootstrap error

After installing laravel ui, when I try to run 'php artisan ui bootstrap' I get the following error:


In Bootstrap.php line 70:

  copy(C:\xampp\htdocs\netlytics\resources\js/bootstrap.js): Failed to open stream: No such file or directory

I have run composer update successfully. I have laravel/ui version 3.2.0. I am running Laravel 8.40.0 with PHP 8.0.3. The site is an old site that I upgraded from Laravel 5.3 and PHP 5.6. The preprocessing was being done using gulp with a gulpfile.js to configure the mix conversions. With Laravel 8 I know I need to update my pre-processing to use webpack.mix.js, but so far can't get there.

There is supposed to be a resources/app/bootstrap.js file but it is not showing up and I do not know what it should look like if I wanted to put it there.

Any ideas how to get this installed correctly?

0 likes
1 reply
denewey's avatar
denewey
OP
Best Answer
Level 2

I actually created the js/bootstrap.php file newly and when running composer it got populated.

Please or to participate in this conversation.