Home  >  Article  >  PHP Framework  >  Solve the problem of error Mix: not found after executing npm run dev

Solve the problem of error Mix: not found after executing npm run dev

藏色散人
藏色散人forward
2021-05-19 14:08:442662browse

The following tutorial column from laravel will introduce to you how to solve the error Mix: not found after executing npm run dev. I hope it will be helpful to friends in need!

Solve the problem of error Mix: not found after executing npm run dev

Cause of error

  • Development environment: homestead
  • laravel version: laravel8
  • Host environment: Windows 10

Because homestead cannot create soft links in Windows 10, you need to add the --no-bin-links parameter when executing npm/yarn. But this will prevent the .bin folder from being created under the node_modules folder. Naturally, things like mix will not be able to run.

Solution

Install node directly in the Windows 10 environment and execute commands such as npm install.
You can execute npm run dev under Windows 10. After that, you can also execute npm run dev normally in the homestead environment.

Related recommendations: The latest five Laravel video tutorials          

The above is the detailed content of Solve the problem of error Mix: not found after executing npm run dev. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete