Okay,
I’m ventured into npm and nodejs hell… i can feel the temperature rising.
i’m using node2nix, things seem to go well (after creating a 89mb node-packages.nix) , which seems to make a FOD every node dependency in the known universe.
Things seem to go pretty well until i hit node-gyp-build , which can’t find /usr/bin/env/, however Nixos does actually have that, available, unless it’s red herring.
So, what my options on packaging a node app? Or is fact on dream2nix can help me :-).
> node-gyp-build
sh: /nix/store/pf5dl9n7hsrfzamm16wpzjbf65ic471i-application-0.1.0/lib/node_modules/application/node_modules/.bin/node-gyp-build: /usr/bin/env: bad interpreter: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! bufferutil@4.0.5 install: `node-gyp-build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the bufferutil@4.0.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.