aboutsummaryrefslogtreecommitdiff
path: root/npm
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-07-24 10:32:42 +0200
committerThomas Schmucker <ts@its1.de>2026-07-24 10:32:42 +0200
commitb91319846c364030074726fba73e76f19713e69d (patch)
tree48da13081a154598c1d8c5aac831630b850173bb /npm
parentc1e4fdb0b9eaf0a6ff2f73ae732970e9b956b05f (diff)
downloaddotfiles-b91319846c364030074726fba73e76f19713e69d.tar.gz
dotfiles-b91319846c364030074726fba73e76f19713e69d.tar.bz2
dotfiles-b91319846c364030074726fba73e76f19713e69d.zip
windows: eigene npmrc-Variante ohne ${HOME} (npm/npmrc-win)
npm/npmrc setzt prefix=${HOME}/.local, damit globale npm-Installationen ohne sudo/root ins Home-Verzeichnis gehen. HOME ist unter Windows i.d.R. nicht gesetzt, ${HOME} wuerde also nicht expandieren. npm/npmrc-win laesst prefix komplett weg - npm nutzt unter Windows ohnehin schon %APPDATA%\npm als Praefix, von Node's eigenem Installer automatisch zum PATH hinzugefuegt, kein Workaround noetig. install-win.ps1 und neovim-windows-setup.md entsprechend angepasst. npm/npmrc (POSIX) bleibt unveraendert.
Diffstat (limited to 'npm')
-rw-r--r--npm/npmrc-win26
1 files changed, 26 insertions, 0 deletions
diff --git a/npm/npmrc-win b/npm/npmrc-win
new file mode 100644
index 0000000..3803390
--- /dev/null
+++ b/npm/npmrc-win
@@ -0,0 +1,26 @@
1; %USERPROFILE%\.npmrc (Windows)
2;
3; Kein "prefix" gesetzt, anders als in npm/npmrc (POSIX): dort dient
4; prefix=${HOME}/.local dazu, globale Installationen ohne sudo/root ins
5; Home-Verzeichnis zu legen. Unter Windows loest npm dieses Problem
6; bereits selbst - der Standard-Praefix liegt ohnehin im Benutzerprofil
7; (%APPDATA%\npm), von Node's eigenem Installer automatisch zum PATH
8; hinzugefuegt. ${HOME} ist unter Windows i.d.R. nicht gesetzt und wuerde
9; hier nicht expandieren.
10
11; default registry
12registry=https://registry.npmjs.org/
13
14; disable fund-spam
15fund=false
16
17; suppresses notifications about new npm versions
18update-notifier=false
19
20; reduce the attack surface for supply chain attacks
21min-release-age=3
22
23; disable pre- und post-scripts
24ignore-scripts=true
25
26; vim: ft=dosini