From 18249c15bb7ae17d5ae43711ab9cc34e326d7f14 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 3 Jun 2020 10:00:45 +0200 Subject: javascript: enable running npm inside Emacs --- user/settings/javascript.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'user/settings') diff --git a/user/settings/javascript.nix b/user/settings/javascript.nix index f438c784..d4e1b0b2 100644 --- a/user/settings/javascript.nix +++ b/user/settings/javascript.nix @@ -110,7 +110,8 @@ in home.file.".npmrc".text = '' prefix=''${HOME}/.local - //registry.npmjs.org/:_authToken=''${NPM_AUTH_TOKEN} + cache=${config.xdg.cacheHome}/npm/ + //registry.npmjs.org/:_authToken=${config.home.sessionVariables.NPM_AUTH_TOKEN} always-auth=true sign-git-tag=true rebuild-bundle=false -- cgit 1.4.1