-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
install-app-deps run as a package.json script fails with yarn >= v0.24.0-0.24.4 #1542
Comments
Yeah, my sample project is also cannot be build using latest stable Yarn. |
No, in my case it was unrelated error. Works for me. |
Please upgrade yarn to 0.24.4 and try. |
I've reproduced the issue in: https://gist.github.com/bcomnes/a9ee8a16ff5d656371b53462f1fa8d34 even for the latest version of yarn v0.24.4 Looks like node-gyp bins are missing for some reason. Could be upstream? Works with npm for some reason. I'm investigating. If I determine that its an electron-builder issue I'll ping you about it. |
UPDATE: To correct what I said before, installing node-gyp along side this allows a successful rebuild, but it doesn't seem to be the missing ingredient between the npm vs yarn installs. Trying to sort that out now. |
Perhaps related to yarnpkg/yarn#3240 ? Yarn stopped bundling node-gyp and instead attempts to fallback to npm's. I have npm and yarn installed, but for some reason install-app-deps isn't finding it. @develar Perhaps we need to compensate for that here? |
Looks like a natural place to fix this is in node-pre-gyp: yarnpkg/yarn#3240 (comment) |
Thanks for investigation. |
@bcomnes did you end up resolving this? I'm still hitting this on yarn v0.27.5. Update |
The node-pre-gyp issues persist unfortunately (for spawning), but yeah you are going to need dev-deps for the dev things :P |
When running install-app-deps from a script field in package.json with
yarn
, it fails in some cases. NPM runs it fine, and older versions of yarn run it fine. Here is an example:The text was updated successfully, but these errors were encountered: