-
Notifications
You must be signed in to change notification settings - Fork 68
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 fails with yarn #95
Comments
I don't know enough to say definitively but yarn added a .lock file to avoid non-deterministic installs. Maybe npm-shrinkwrap helps to reliably reproduce the environment. |
Without more information, I don't think we can say what's going on here. Does V=1 in the environment include any other information? |
Have similar issue, though it seems it fails to install tap-consumer (Mac OS X 10.12.4):
There is an issue on this where yarn works differently than npm with bundledDependencies yarnpkg/yarn#886 |
It looks like the issue is that the install script makes some assumptions about the presence of and location of var child = spawn('node-gyp', ['rebuild'], options);
child.on('error', function(err) {
if (err.code === 'ENOENT') {
console.error('cannot locate node-gyp');
process.exit(1);
} else {
console.error('unknown error:', err);
process.exit(1);
}
}); That is to say, rather than attempting to detect the location of |
@elyscape It looks like |
@melloc Yeah, as far as I can tell, it should work fine with npm installed by Homebrew. It definitely works with npm shipped with Node. |
@melloc, looks like NPM also exposes Edit: Looks like I was wrong; |
I've tested these changes with a standalone I have also tested doing a yarn install in a checked-out Additionally, I've done installs with npm on SmartOS, OS X and FreeBSD 10 with several different versions of node, and run the tests each time, all successfully. |
I can't find where exactly it's documented that
From here. Elsewhere in the file, there's:
Additionally, this page states:
So it sounds like we should be able to rely on this as being supported by npm. I couldn't find any similar guarantees in the yarn documentation. |
Latest 0.8.3 includes a yarn fix: chrisa/node-dtrace-provider#95
In order to work around the issue, I had to Previous to this, I did not have
|
Trying to build a module which depends on this module on a CI server and always get this:
It always fails silently and exits with exit code 1. I noticed that sometimes building manually a second time works instead, but not consistently.
Any idea what might be going wrong there?
The text was updated successfully, but these errors were encountered: