Blame Raw
Cohee · 51ad27fb · · 16 lines (482 B)
1 contributor
1#!/usr/bin/env bash
2
3# Make sure pwd is the directory of the script
4cd "$(dirname "$0")"
5
6if ! command -v npm &> /dev/null
7then
8 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"
9fi
10
11echo "Installing Node Modules..."
12export NODE_ENV=production
13npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
14
15echo "Entering SillyTavern..."
16node "server.js" "$@"