On Fri, Jun 28, 2013 at 10:44:51AM -0700, Trent Mick wrote:
> Yah, the "slow rebuild" is the node-dtrace-provider optional dep. It has a
> shim that is meant to make it just stub out no-op behaviour for platforms
> that don't support dtrace (e.g. the linux on RPi). The 'dtrace-provider'
> dep used to be in "dependencies" for node-bunyan, i.e. not optional,
> because I wanted to avoid a build failure there NOT being noticed on
> dtrace-y platforms. However it was moved to be an "optionalDependency"
> because the requirement to have a C++ compiler at all was burdensome (e.g.
> on Windows).
>
> I don't know of a way to "npm install FOO" and NOT attempt to install the
> optional dependencies... without removing the "dtrace-provider" entry from
> bunyan's package.json ahead of time. Ideally I'd want a way to tell npm
> that the "dtrace-provider" dep is only for a specified set of platforms
> (e.g. smartos, illumos, mac).
>
> Is the slow rebuild *breaking* you? Or more just a real burden on your
> build/install/setup process?
From our exchanges on Twitter:
`npm install --no-optional` works great, thank you.
--
Alan Gutierrez ~ @bigeasy
~