dredd: Native compilation failure of optional dep makes installation super slow

Describe the bug Having Dredd present in a project using Node 10 leads to an attempt to natively compile protagonist (or drafter, or snowcrash, or something, I’m not quite sure which is actually the culprit). For reasons not entirely clear to me, this native compile is attempted not just when installing dredd, but when installing other modules (maybe anytime the dredd tree in package-lock gets touched?)

The issue seems to be fixed in protagonist but Dredd needs to update to consume it.

To Reproduce Use Node 10. Run npm install dredd. You’ll see a very long install time with a failed native compile (but a zero exit code).

Expected behavior Installs go quickly because the native module (which is an optional dependency) cannot install.

What is in your dredd.yml? Not Relevant What’s your dredd --version output?

Same thing happens when installing 5.3.0 on heroku and on debian

dredd v5.3.0 (Darwin 18.2.0; x64)

Does dredd --level=debug uncover something? Not relevant

Can you send us failing test in a Pull Request? Not Applicable

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (11 by maintainers)

Commits related to this issue

Most upvoted comments

To the published Dredd artifact.

@mdular If you are explicitly installing Dredd in CI, you can skip optional dependencies if that helps you work around this quicker http://dredd.org/en/latest/installation.html#installing-c-dependencies

$ npm install dredd --global --no-optional