chore: fnm als Node-Version-Manager, Regel für systemverändernde Scripts
bootstrap.sh empfiehlt fnm statt nvm für Node.js-Installation und gibt klare Installationsbefehle statt eines #-Kommentars aus. Neue Entwicklungs- regel: systemverändernde Scripts nie zum Testen ausführen. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+8
-3
@@ -73,14 +73,19 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v fnm &>/dev/null; then
|
||||
eval "$(fnm env 2>/dev/null)" || true
|
||||
fi
|
||||
|
||||
if command -v npm &>/dev/null; then
|
||||
check_cmd "markdownlint-cli2" "$(markdownlint-cli2 --version 2>/dev/null | head -1 || true)" \
|
||||
|| missing_other+=("npm install -g markdownlint-cli2")
|
||||
else
|
||||
if ! command -v markdownlint-cli2 &>/dev/null; then
|
||||
echo " FEHLT markdownlint-cli2 (npm nicht vorhanden)"
|
||||
echo " Node.js zuerst installieren, z.B. via nvm"
|
||||
missing_other+=("# Node.js installieren: https://github.com/nvm-sh/nvm" "npm install -g markdownlint-cli2")
|
||||
echo " FEHLT markdownlint-cli2 (Node.js nicht vorhanden)"
|
||||
missing_other+=("curl -fsSL https://fnm.vercel.app/install | bash"
|
||||
"fnm install --lts"
|
||||
"npm install -g markdownlint-cli2")
|
||||
else
|
||||
echo " OK markdownlint-cli2 ($(markdownlint-cli2 --version 2>/dev/null | head -1 || true))"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user