-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't find the binary #6048
Comments
@adnanfajlur Did you find a solution for this? I'm getting the same error. |
Thanks @adnanfajlur. you are right it was a issue with cmd. So I check with git bash and now I'm getting a different error. |
This isn't working because an empty array [] is passed into the spawn() function for the arguments parameter i.e. I'm not sure why that array is empty. Are the arguments supposed to be passed another way? |
I have the same issue when running a simple npm script
Yarn
Npm
|
Exact same issue from ... yeasterday all was fine, today I can't run scripts with yarn. NPM is working just fine. I'm o a Windows 10 x64 machine. |
Hi All, I got a fix for my error in another issue #6086 (comment) |
Thank you so much for the link @shabith ... works again In short ... open your ~.npmrc file and remove the line
The only weird thing is it was working just fine one day and the other day we got stuck with yarn not running any command, without updating yarn nor node Could a windows update be the problem to this? |
I don't think it is related to windows update @richardsengers. But it could be related to node update. Anyway I'm glad it is working again. |
I had the same issue. In my case I removed yarn.lock then I tested again and it worked!. You may have a try deleting yarn.lock. Maybe yarn requires git in certain dependencies declared in yarn.lock |
I'm not able to fix it :/ I've tried deleting my yarn lock files, that didnt work.. I also tried removing the shell-script=bash in my .npmrc file but that wasnt even there. |
Is this problem still relevant? |
I may have a solid reproduction of this. I was just throwing a function I use often into its own package and I did the normal setup but ran into this issue where yarn can't find items installed and existing in the .bin dir. IssueThis is the test script I usually use
I double checked the WorkaroundThis is the workaround I'm having to go with for now.
You can see -- and hopefully reproduce -- here. The Deets
|
Thank You @richardsengers for short answer 👍 I am beginner and this helped me. I was struggling from last 2 days. @shabith For sharing the issue details with the link. That helps. |
done |
the problem with mine is when i try to add script-shell, later it becomes unrecognizeable then i got the same issue "couldn't fine the binary", |
Had this issue after installing Playwright in my React project. When i tried to run But when running |
I'm having this same problem. |
just chiming in, same issue happening with webpack binary. nothing more to add im afraid for now. symptoms the same as others. idk what to try to provide more info. |
I had this problem also ;) why can't I use npx ? The issue with npx on Windows is related to how it handles script execution and path resolution. Let's verify the npx installation and try to diagnose the specific issue: Ran terminal command
Stdout Ran terminal command
Stdout prefix = "C:\Users\thoma\AppData\Roaming\npm" ; "user" config from C:\Users\thoma.npmrc script-shell = "=" ; node bin location = C:\Program Files\nodejs\node.exe Code Ran terminal command
|
Couldn't find the binary.. after run npm clean, and if i run with npm run dev it still can not
The text was updated successfully, but these errors were encountered: