4 ms·
As one example, IIRC, I can run "npm install -g" on other Linux distributions, but can't with Nixpkgs (since npm will try to install the package to the nix stor
by rgoulter 5y ago
As one example, IIRC, I can run "npm install -g" on other Linux distributions, but can't with Nixpkgs (since npm will try to install the package to the nix store). Yarn would install it to the home folder.
- 0xCMP 5y agoYea this can be very annoying when a package is not already in nixpkgs or it's out of date. There was a similar issue if you didn't use Python virtualenvs properly, which was an early source of frustration for me personally.
- pxc 5y agoFwiw you can use `npm install -g` if you configure NPM to use your homedir for globally installed packages, as well. It's just not the default behavior.