devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Package Management: Support Global Package Installs for NPM + Bundler

Open Lagoja opened this issue 3 years ago • 1 comments

Lagoja avatar Sep 13 '22 03:09 Lagoja

This was the response I got from the devs. I haven't tried the solution yet, but I think it should work.

Nix is pretty restrictive about installing packages globally. But you can install global node packages using: devbox add nodePackages.<package_name> For example, if you need yalc: devbox add nodePackages.yalc

Because it is built on top of Nix, I think many concepts are interchangeable.

abdullahdevrel avatar Oct 13 '22 08:10 abdullahdevrel

Supportable with the workflow described above for nodePackages and some other package managers. For tools like Bundler, there are some workarounds that can be found in our examples Repo (https://github.com/jetpack-io/jetpack-examples). We're planning some work to make this configuration easier for developers to setup.

Lagoja avatar Oct 27 '22 23:10 Lagoja

@Lagoja Oh geez, I didn't realize that you were a contributor yourself, I thought it was a question from a user haha. So wanted to help. :)

abdullahdevrel avatar Oct 30 '22 02:10 abdullahdevrel

% devbox add nodePackages.gitlab-ci-local   

Error: Package nodePackages.gitlab-ci-local not found

justinTM avatar Nov 07 '23 21:11 justinTM