Home > PHP Framework > Laravel > 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

藏色散人
Release: 2021-05-20 09:06:43
forward
2701 people have browsed it

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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template