Skip to content

Commit

Permalink
feat(npm): using alternative path to save globally installed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
luisnquin committed Mar 6, 2024
1 parent 6458d06 commit 15a1049
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home/modules/dev/node.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
enableZshIntegration = true;
};

sessionPath = ["$HOME/.npm-global/bin"];

file.".npmrc".text = ''
prefix=${config.home.homeDirectory}/.npm-global
'';

home.packages = with pkgs; [
npm-check-updates # (ncu) Find newer versions of package dependencies and check outdated npm packages locally or globally.
nodePackages.pnpm
Expand Down

0 comments on commit 15a1049

Please sign in to comment.