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!
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.
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!