Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure when mkNodeModules derivation name is "node_modules" #78

Open
joprice opened this issue Oct 30, 2023 · 0 comments
Open

Build failure when mkNodeModules derivation name is "node_modules" #78

joprice opened this issue Oct 30, 2023 · 0 comments

Comments

@joprice
Copy link

joprice commented Oct 30, 2023

To test out this project, i passed pname as "node_modules" to my derivation and spent a while debugging it.

I think this line ends up greedily trimming the path: https://github.com/serokell/nix-npm-buildpackage/blob/master/default.nix#L85

error: builder for '/nix/store/7fz458hj6sm0lmq2ql4vvwg06wgnjr5j-node_modules-0.0.0-node-modules.drv' failed with exit code 1;
       last 10 log lines:
       > building npm cache
       > building node_modules
       > npm ERR! code 1m reifyNode:node_modules/typescript Comurm
       > npm ERR! path /private/tmp/nix-build-node_modules-0.0.0-node-modules.drv-0/node_modules/msw
       > npm ERR! command failed
       > npm ERR! command /nix/store/gvfp186azylyvf0yvf6lxrdx7w5vjf36-npm-shell-wrap.sh/bin/npm-shell-wrap.sh -c node -e "try{require('./config/scripts/postinstall')}catch(e){}"
       > npm ERR! /nix/store/gvfp186azylyvf0yvf6lxrdx7w5vjf36-npm-shell-wrap.sh/bin/npm-shell-wrap.sh: line 3: pushd: /private/tmp/nix-build-/node_modules: No such file or directory
       >
       > npm ERR! A complete log of this run can be found in: /private/tmp/nix-build-node_modules-0.0.0-node-modules.drv-0/npm-cache/_logs/2023-10-30T16_08_48_190Z-debug-0.log
       >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant