-
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
yarn add grpc
throws error [0.17.0]
#1817
Comments
yarn add grpc
throws error [0.17.0]
Oddly enough, if you run yarn add grpc again, it works from then on. Removing ~/.cache/yarn will cause the issue to occur again the next time you try to run yarn add grpc. I suspect yarn might not be properly handling bundledDependencies on the first-run, as grpc includes node-pre-gyp by way of bundledDepdencies. |
Actually, turns out grpc isn't properly installed even after the second run. Yarn thinks it is and completes successfully but the native module that failed to build due to the error in the original post isn't present. |
Exactly, yarn also needs a mechanism to identify if a module was successfully installed. |
I've installed latest yarn using |
Can't reproduce this on latest either |
Yeah, I can confirm that this was broken in 0.17.0 but works in 0.17.3 |
Still getting this error:
This is also after I removed If I run |
@lostpebble, does |
I tried deleting Then on top of that, I tried
|
@Google-Cloud - could it be related to scoped packages issue? |
I had a lot of time sensitive work to do so I moved back to NPM for a while on my project to get that done. But I really want to use yarn, and I'm now using version 0.19.1 (installed with the lastest .msi) and I'm still getting the same error, trying out the same things. This is the script that is specifically causing the problem I think (the install script for the
Still causing this error on Windows environment:
But using
EDIT: I get the feeling this may be associated with this problem with relative paths on Windows: #1729 |
Yeah, I can reproduce this on Windows. |
Let's track the |
I get the following error:
Surprisingly this works with
npm install
node --version
v4.6.1
npm --version
2.15.9
yarn --version
0.17.0
OS:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
The text was updated successfully, but these errors were encountered: