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

Problems with lerna project #139

Open
poelzi opened this issue Jan 21, 2022 · 2 comments
Open

Problems with lerna project #139

poelzi opened this issue Jan 21, 2022 · 2 comments

Comments

@poelzi
Copy link

poelzi commented Jan 21, 2022

I try to create a flake.nix for a lerna based uhk-agent.
My current version is here

The problem starts with 'lerna bootstrap' postinstall command, which will fail because at that point the cwd will not be the root of project and lerna.json will not exist.
Trying to use the patchPhase to remove the postInstall hook does not work.

My next try was to no use lerna and instead use the 'node_modules' dervation on each dependency in the packages folder and use those as buildInputs in the uhk-agent derivation. But it complains about missing cache:
uhk-agent> npm ERR! request to https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz failed: cache mode is 'only-if-cached' but no cached response is available.

How do I use npmlock2nix with lerna based projects ?

@flokli
Copy link
Contributor

flokli commented Jan 25, 2022

@poelzi which npm version do you have available? This might be #140.

@poelzi
Copy link
Author

poelzi commented Jan 26, 2022

yes, that might be the reason. I'm forced to node 16.x due project constraints

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

2 participants