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
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?
Can you also provide your package.json and yarn.lock files?
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
Didn't mean to close. Auto-closed via the PR which may potentially fix this.
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.
@rbirkgit the fix is released now. Did you have a chance to try it out?
BYK, I just did yesterday and it works great! Forgot to update. Thanks!!
That's great! Closing this happily ever after then 馃槂