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

ergezcaner's avatar

Laravel Mix, Mix not found error

vagrant@homestead:~/intern$ npm run prod

> @ prod /home/vagrant/intern
> npm run production


> @ production /home/vagrant/intern
> mix --production

sh: 1: mix: not found

I want simply create a new laravel and breeze intertia version. npm install ran success but npm run prod or deploy or watch. All run commands getting this error.

0 likes
4 replies
sr57's avatar

Can you share your package.json

1 like
ergezcaner's avatar

Of Course

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "mix",
        "watch": "mix watch",
        "watch-poll": "mix watch -- --watch-options-poll=1000",
        "hot": "mix watch --hot",
        "prod": "npm run production",
        "production": "mix --production"
    },
    "devDependencies": {
        "@inertiajs/inertia": "^0.8.4",
        "@inertiajs/inertia-vue3": "^0.3.5",
        "@inertiajs/progress": "^0.2.4",
        "@tailwindcss/forms": "^0.2.1",
        "@vue/compiler-sfc": "^3.0.5",
        "autoprefixer": "^10.2.4",
        "axios": "^0.21",
        "laravel-mix": "^6.0.11",
        "lodash": "^4.17.19",
        "postcss": "^8.2.1",
        "postcss-import": "^12.0.1",
        "tailwindcss": "^2.0.3",
        "vue": "^3.0.5",
        "vue-loader": "^16.1.2"
    },
    "dependencies": {
        "mix": "0.0.1"
    }
}

sr57's avatar

-1- check if you have node_modules/laravel-mix

-2-

I have also Laravel + Breeze ° Internia and I use diff to compare our package.json

hope this can help

20c20
<         "laravel-mix": "^6.0.6",
---
>         "laravel-mix": "^6.0.11",
26a27,29
>     },
>     "dependencies": {
>         "mix": "0.0.1"
1 like
ergezcaner's avatar

I am download node in my windows platform (not vagrant). And run npn run deploy. İt works. Bu vagrant is getting same issue. Thank you for help @sr57

Please or to participate in this conversation.