Skip to content
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 sh" with yarn 1.5.1 #5479

Closed
rbirkgit opened this issue Mar 7, 2018 · 8 comments · Fixed by #5484
Closed

"Couldn't find the binary sh" with yarn 1.5.1 #5479

rbirkgit opened this issue Mar 7, 2018 · 8 comments · Fixed by #5484

Comments

@rbirkgit
Copy link

rbirkgit commented Mar 7, 2018

Do you want to request a feature or report a bug?

What is the current behavior?
I get this installing our yarn packages., With yarn 1.3.2 it was working fine. This is on a linux box. On my windows box it works fine.

2018-03-07 11:43:17 gobuilds.Compile : [INFO] yarn install v1.5.1
2018-03-07 11:43:17 gobuilds.Compile : [INFO] [1/4] Resolving packages...
2018-03-07 11:43:18 gobuilds.Compile : [INFO] [2/4] Fetching packages...
2018-03-07 11:43:31 gobuilds.Compile : [INFO] info [email protected]: The platform "linux" is incompatible with this module.
2018-03-07 11:43:31 gobuilds.Compile : [INFO] info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2018-03-07 11:43:31 gobuilds.Compile : [INFO] [3/4] Linking dependencies...
2018-03-07 11:43:37 gobuilds.Compile : [INFO] [4/4] Building fresh packages...
2018-03-07 11:43:38 gobuilds.Compile : [ERROR] error An unexpected error occurred: "/build/mts/release/sb-14177014/vcac/core/branding/navigation/node_modules/webpack/node_modules/uglifyjs-webpack-plugin: Couldn't find the binary sh".
2018-03-07 11:43:38 gobuilds.Compile : [INFO] info If you think this is a bug, please open a bug report with the information provided in "/build/mts/release/sb-14177014/vcac/core/branding/navigation/yarn-error.log".
2018-03-07 11:43:38 gobuilds.Compile : [INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2018-03-07 11:43:38 gobuilds.Compile : [INFO] info This module is OPTIONAL, you can safely ignore this error
2018-03-07 11:43:38 gobuilds.Compile : [ERROR] warning Error running install script for optional dependency: "/build/mts/release/sb-14177014/vcac/core/branding/navigation/node_modules/node-sass: Couldn't find the binary sh"
2018-03-07 11:43:38 gobuilds.Compile : [INFO] info This module is OPTIONAL, you can safely ignore this error
2018-03-07 11:43:38 gobuilds.Compile : [ERROR] warning Error running install script for optional dependency: "/build/mts/release/sb-14177014/vcac/core/branding/navigation/node_modules/uws: Couldn't find the binary sh"

If the current behavior is a bug, please provide the steps to reproduce.

running 'yarn install'. With yarn 1.3.2 it is working fine. All I did was replace to yarn 1.5.1

What is the expected behavior?

Expect to install packages

Please mention your node.js, yarn and operating system version.

Node 8.9.4
Yarn 1.5.1
Linux

@ghost ghost assigned torifat Mar 7, 2018
@ghost ghost added the triaged label Mar 7, 2018
@BYK
Copy link
Member

BYK commented Mar 8, 2018

I think this may be related to #5133.

Can you try a custom build if we were able to provide it and see if it fixes the issue?

@BYK
Copy link
Member

BYK commented Mar 8, 2018

Can you also provide your package.json and yarn.lock files?

@rbirkgit
Copy link
Author

rbirkgit commented Mar 8, 2018

I may be able to try a custom build (our build system is little finicky with access). In the mean time attached are the package and lock files.
packagandlockfile.zip

@BYK BYK closed this as completed in #5484 Mar 9, 2018
@BYK BYK reopened this Mar 9, 2018
@BYK
Copy link
Member

BYK commented Mar 9, 2018

Didn't mean to close. Auto-closed via the PR which may potentially fix this.

@msarris
Copy link

msarris commented Apr 5, 2018

I also git this error while deploying to AWS Elastic Beanstalk:

error An unexpected error occurred: "/var/app/ondeck/node_modules/uglifyjs-webpack-plugin: Couldn't find the binary sh".

With Yarn 1.3.2 I got a different error: node: command not found. That was resolved by adding /usr/bin to the path: export PATH=$PATH:/usr/bin && yarn install. I thought I'd put it here, in case it might help with resolving the issue or help someone else with similar issues.

@BYK
Copy link
Member

BYK commented Apr 26, 2018

@rbirkgit the fix is released now. Did you have a chance to try it out?

@rbirkgit
Copy link
Author

BYK, I just did yesterday and it works great! Forgot to update. Thanks!!

@BYK
Copy link
Member

BYK commented Apr 26, 2018

That's great! Closing this happily ever after then 😃

@BYK BYK closed this as completed Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants