Closed kirbysayshi closed 8 years ago
I'm experimenting the same issue. Some subdependencies are not yet downloaded and the parent module attemps to run the install script.
This is due to circular dependencies not being resolved properly and other edge cases in the dependency graph. It's fixed on the rebirth
branch, which will be merged into master
in a couple of days.
It works. Thank you!
Closing, since it's now finally merged into master. Lifecycle scripts can be activated using --build
.
Using the real-world (ish) package.json found here: https://gist.github.com/kirbysayshi/8b32f5ae77898475f0ee172e0452d713, ied fails to install with the following error:
This is using ied master as of today (https://github.com/alexanderGugel/ied/commit/54aff07790bb6ffa15e972e06c1ea62b41325503).
Doing some digging, and putting in some print statements indicates that this is caused by a
require('hawk')
viarequire('request')
, ultimately during theinstall
script defined inphantomjs-prebuilt
.Seems like a race condition, where hawk is still in the process of being downloaded when lifecycle scripts begin executing.
The package.json is an edited version of an internal codebase, and is very much a real-world scenario that I assume ied (as an npm replacement) would want to be able to handle.
Not sure how best to describe this, so feel free to edit the title of this issue. Also, thanks for creating a great tool, I can't wait to start using it for real!