-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·55 lines (47 loc) · 1.51 KB
/
install.sh
File metadata and controls
executable file
·55 lines (47 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
set -e
# Colors
GREEN='\033[92m'
CYAN='\033[96m'
YELLOW='\033[93m'
RED='\033[91m'
BOLD='\033[1m'
RESET='\033[0m'
echo ""
echo -e "${CYAN}${BOLD} 🧵 NeverForget Installer${RESET}"
echo -e "${CYAN} LLMs have amnesia. NeverForget is the cure.${RESET}"
echo ""
# Check Node.js
if ! command -v node &> /dev/null; then
echo -e "${RED}Node.js is not installed.${RESET}"
echo ""
echo "Install it with one of:"
echo -e " ${GREEN}curl -fsSL https://fnm.vercel.app/install | bash && fnm install --lts${RESET}"
echo -e " ${GREEN}brew install node${RESET} (macOS)"
echo -e " ${GREEN}apt install nodejs npm${RESET} (Ubuntu/Debian)"
echo ""
exit 1
fi
NODE_VERSION=$(node -v | sed 's/v//' | cut -d. -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo -e "${RED}Node.js v18+ required. You have $(node -v).${RESET}"
echo -e "Upgrade: ${GREEN}fnm install --lts${RESET} or ${GREEN}brew upgrade node${RESET}"
exit 1
fi
echo -e "${GREEN}✓${RESET} Node.js $(node -v) detected"
# Install
echo -e "${CYAN}Installing neverforget globally...${RESET}"
npm install -g neverforget
echo ""
echo -e "${GREEN}${BOLD}✅ Installed!${RESET}"
echo ""
echo -e " Run the setup wizard: ${BOLD}neverforget init${RESET}"
echo -e " Start the proxy: ${BOLD}neverforget${RESET}"
echo -e " Auto-configure tools: ${BOLD}neverforget integrate all${RESET}"
echo ""
# Offer to run wizard
read -p "Run setup wizard now? [Y/n] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then
neverforget init
fi