devnull
devnull

Reputation: 11

Laravel 8 - "npm run dev" not working. sh: 1: mix: Permission denied

I have virtual machine on Vagrant. Mount my folder on vagrant: Vagrant config

I wanted to create a new Laravel project (jetstream livewire). The following commands are executed correctly.

  1. sudo composer create-project --prefer-dist laravel/laravel laravelAndroid
  2. add schema to database
  3. edit .env => connect to mysql
  4. cd laravelAndroid
  5. sudo composer require laravel/jetstream
  6. php artisan jetstream:install livewire

After step #6 I get the following message: "Please execute "npm install && npm run dev" to build your assets."

I run "npm run dev" and console return: response

I do not know what access is involved. image

When i change "mix" to "asset" in guest.blade.php- everything is ok. change

Upvotes: 1

Views: 3263

Answers (1)

slothstronaut
slothstronaut

Reputation: 1050

Delete and reinstall

rm -rf node_modules
npm install

Upvotes: 4

Related Questions