On install, modules are built but not installed to node
wmertens opened this issue · 2 comments
With npm install it seems to run node-gyp but all that does is create a directory build/Release with the compiled stuff.
I think the *.node and nprof files need to be moved to the root and the build dir removed. That's what buffertools does at least.
After installing node-gyp :-D and running node-gyp configure build install
I can use the modules even though they are still under build/.
I suppose node-gyp should be made a dependency?
I suppose node-gyp should be made a dependency?
No. npm depends on node-gyp, i.e. if you have npm installed, you should have node-gyp installed as well. The package.json in the top-level node-profiler directory points npm / require() to the .node file.
nprof not getting installed is a known issue (it's a node-gyp bug). I'll probably work around that by spinning off nprof into a separate package. :-)