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

How to make a shell that has the node modules installed? #66

Open
Ekleog opened this issue Nov 20, 2022 · 0 comments
Open

How to make a shell that has the node modules installed? #66

Ekleog opened this issue Nov 20, 2022 · 0 comments

Comments

@Ekleog
Copy link

Ekleog commented Nov 20, 2022

Hey!

I'm in the process of trying to build and run/emulate a cordova app on nixos. I wanted to try using nix-npm-buildpackage, because electron has native dependencies in node_modules; so it's hard to make it work out.

So I need to somehow have a shell that has the node modules defined by package-lock.json installed, so that I could run the cordova commands in there.

However, I can't figure out a way to do that with nix-npm-buildpackage. (npmlock2nix has a built-in .shell that builds such a shell, but it fails actually building electron nix-community/npmlock2nix#162)

Do you have any hints as to how I could get a shell with the modules defined in package-lock.json installed using nix-npm-buildpackage?

PS: sorry for sending this issue with an empty contents at first, I misclicked.

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