Open colehaus opened 4 years ago
I'm not entirely sure if I understand your question. But one reason why the directory structure does not exactly match the package.json specifiers is because NPM 3.x and newer, "flatten" the directory structure in which dependencies are moved up as high as possible in the node_modules/
directory hierarchy.
Can you do a small comparison? There is also an option in node2nix to disable flattening (see node2nix --help
)
Does that result in the same warnings?
Maybe the warning could also be a defect in my trickery that tries to bypass the NPM cache.
With an invocation (on version 1.7.0) like:
args.src
in the resultingnode-packages.nix
only seems to reflect the first directory withpackage.json
. This can lead to strange issues when actually building the resultant derivations. The error I got wasENOTCACHED [...] ERR! request to https://registry.npmjs.org/viz.js failed: cache mode is 'only-if-cached' but no cached response available.
.