node-dtrace-provider icon indicating copy to clipboard operation
node-dtrace-provider copied to clipboard

scripts/install.js hangs on OSX 10.10

Open ilyador opened this issue 11 years ago • 6 comments

$ npm install dtrace-provider
|
> [email protected] install /Users/.../server/node_modules/dtrace-provider
> scripts/install.js

And nothing happens for a long time.

ilyador avatar Jan 18 '15 19:01 ilyador

What version of node?

Can you try running again with V=1 npm install dtrace-provider to get verbose output?

trentm avatar Jan 19 '15 04:01 trentm

I'm having the same issue. I tried using V=1 npm install dtrace-provider as suggested above however it did not output anything.

Using node 0.10.34

indieisaconcept avatar Feb 04 '15 05:02 indieisaconcept

Actually I was just able to get the following error.

> [email protected] install /Users/.../app/node_modules/dtrace-provider
> node scripts/install.js


fs.js:555
  return binding.rename(pathModule._makeLong(oldPath),
                 ^
Error: ENOENT, no such file or directory '/Users/.../app/node_modules/node_modules/dtrace-provider/compile.py'
    at Object.fs.renameSync (fs.js:555:18)
    at Object.<anonymous> (/Users/.../app/node_modules/dtrace-provider/scripts/install.js:14:4)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:929:3

indieisaconcept avatar Feb 04 '15 05:02 indieisaconcept

@indieisaconcept Is that compile.py file there in your tree? What is the full path there, "/Users/.../app/node_modules/node_modules/dtrace-provider/compile.py"? Are there spaces or non-ascii chars involved there?

Does this work:

$ node
> var fs = require('fs');
> fs.existsSync('/Users/.../app/node_modules/node_modules/dtrace-provider/compile.py')  # using the actual full path

If you try to build your module using dtrace-provider a second time, does it work? (e.g. I've seen races in npm before, tho usually only when pulling directly from git repos).

trentm avatar Feb 04 '15 16:02 trentm

I have the same issue in CircleCI job building a docker container:

> [email protected] install /nectar-toolbox/node_modules/dtrace-provider
> node scripts/install.js

TomaszKlosinski avatar Jan 19 '18 21:01 TomaszKlosinski

@tklo Which dependency of yours is pulling in [email protected]? I released 0.8.6 a week ago which reworked the build scripts, and should hopefully improve the build process.

melloc avatar Jan 19 '18 21:01 melloc