'sass is broken "'dart.exe' is not recognized as an internal or external command, operable program or batch file."
I have received this error:
'dart.exe' is not recognized as an internal or external command, operable program > or batch file.
Sass was working one day, but the next it stopped and gave me this error, I have tried uninstalling and reinstalling. What could the issue be?
Solution 1:[1]
Please Update your Package manager.
example : you use chocolatey Package manager
choco update sass
Then your Dart Dependencies will Updated
Finally it will be work...!
Solution 2:[2]
I just had the exact same error. I found that I had to run the Command Prompt as administrator and then it worked fine.
Solution 3:[3]
Going between Mac and PC, I ran into this after mistakenly downloading the .zip file for Mac when I was on PC. No .exe files in the Mac version!
Solution 4:[4]
I found the solution after searching a lot.
Before downloading flutter from
https://docs.flutter.dev/get-started/install
Disable your antivirus.
Then move the folder to C: and add the exception for the antivirus you are using.
Remember to add to ENV path:
and value as
C:\Windows\System32
C:\Program Files\Git
C:\flutter\bin
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Vithushan |
| Solution 2 | James |
| Solution 3 | Gene Bo |
| Solution 4 | bacchilega |
