From b91319846c364030074726fba73e76f19713e69d Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 24 Jul 2026 10:32:42 +0200 Subject: 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. --- npm/npmrc-win | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 npm/npmrc-win (limited to 'npm/npmrc-win') 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 @@ +; %USERPROFILE%\.npmrc (Windows) +; +; Kein "prefix" gesetzt, anders als in npm/npmrc (POSIX): dort dient +; prefix=${HOME}/.local dazu, globale Installationen ohne sudo/root ins +; Home-Verzeichnis zu legen. Unter Windows loest npm dieses Problem +; bereits selbst - der Standard-Praefix liegt ohnehin im Benutzerprofil +; (%APPDATA%\npm), von Node's eigenem Installer automatisch zum PATH +; hinzugefuegt. ${HOME} ist unter Windows i.d.R. nicht gesetzt und wuerde +; hier nicht expandieren. + +; default registry +registry=https://registry.npmjs.org/ + +; disable fund-spam +fund=false + +; suppresses notifications about new npm versions +update-notifier=false + +; reduce the attack surface for supply chain attacks +min-release-age=3 + +; disable pre- und post-scripts +ignore-scripts=true + +; vim: ft=dosini -- cgit v1.3