mix not found
See original GitHub issue- 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:
- Created 3 years ago
- Comments:10
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With 6.10.0 it should also work under your old path.
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.