Files
SillyTavern/start.sh
T
Cohee e2d8c0200f Use custom init script instead of postinstall (#5384)
* Use custom init script instead of postinstall

* Revert changes to start scripts in src\electron

* feat: add --ignore-scripts flag to npm install commands in batch and shell scripts

* feat: add --ignore-scripts flag to npm ci in Dockerfile
2026-04-01 23:34:00 +03:00

18 lines
495 B
Bash
Executable File

#!/usr/bin/env bash
# Make sure pwd is the directory of the script
cd "$(dirname "$0")"
if ! command -v npm &> /dev/null
then
echo -e "\033[0;31mnpm could not be found in PATH. If the startup fails, please install Node.js from https://nodejs.org/\033[0m"
fi
echo "Installing Node Modules..."
export NODE_ENV=production
npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
npm run init
echo "Entering SillyTavern..."
node "server.js" "$@"