question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  • Laravel Mix Version: 6.0.9 (npm list --depth=0)
  • Node Version: v12.13.0
  • NPM Version: 6.12.0
  • OS: Windows 10

Description:

🚀❯ npm run dev

> @ dev D:\code\dnw\hannibal\src


> @ development D:\code\dnw\hannibal\src
> mix

Der Befehl "mix" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `mix`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Alex\AppData\Roaming\npm-cache\_logs\2021-01-11T11_18_48_485Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Alex\AppData\Roaming\npm-cache\_logs\2021-01-11T11_18_48_511Z-debug.log

The content of my package.json:

{
    "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": {
        "@tailwindcss/forms": "^0.2.1",
        "@tailwindcss/typography": "^0.3.0",
        "alpinejs": "^2.7.3",
        "autoprefixer": "^10.2.1",
        "axios": "^0.21",
        "chokidar": "^3.5.0",
        "chokidar-cli": "^2.1.0",
        "cross-env": "^7.0.3",
        "esbuild": "^0.8.31",
        "laravel-mix": "^6.0.6",
        "lodash": "^4.17.19",
        "postcss": "^8.2.4",
        "postcss-custom-properties": "^10.0.0",
        "postcss-import": "^12.0.1",
        "postcss-nested": "^5.0.3",
        "precss": "^4.0.0",
        "tailwindcss": "^2.0.2"
    }
}

Node_modules are present.

Slightly different to #2761 as there was a problem with webpack. I’m unable to run mix or npx mix.

Steps To Reproduce:

Use a fresh laravel project. Or a fresh mix install. Doesn’t work either way. 😂

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Wulfheartcommented, Jan 17, 2021

With 6.10.0 it should also work under your old path.

0reactions
AliN11commented, Jan 17, 2021

@AliN11 which version of mix do you have installed? npm list --depth=0 should give you a hint.

6.0.6 But it is fixed! I Moved the project to another path and the problem is gone. I think the problem was related to the project path.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel, NPM: Command "mix" not found - Stack Overflow
I tried many solutions but only this worked for me: First, update your laravel-mix npm install laravel-mix@latest.
Read more >
mix: command not found (Laravel) error [Solved] | bobbyhadz
To solve the error "mix: command not found", make sure to install the laravel-mix package by opening your terminal in your project's root...
Read more >
sh: 1: mix: not found · Issue #2903 - GitHub
Once again I am having issues with a new version of Laravel Mix. npm run watch-poll throws a "sh: 1: mix: not found"...
Read more >
mix: not found - Laracasts
Fresh installation of laravel 8, Jetstream and Livewire and I'm getting below error. How to resolve it? Thank you. npm run dev. @...
Read more >
Troubleshooting | Laravel Mix Documentation
I'm having trouble updating/installing Mix. Unfortunately, there are countless reasons why your dependencies may not be installing properly. A common root ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found