Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
fix(install): handle Homebrew node installed but not linked (#99)
Riley Thompsone773903a797f
diff --git a/scripts/install/install.sh b/scripts/install/install.shindex bc20b106..2a82e27a 100755--- a/scripts/install/install.sh+++ b/scripts/install/install.sh@@ -147,7 +147,20 @@ install_or_upgrade_node() {if [ "$action" = "Upgrading" ]; thenbrew upgrade node 2>/dev/null || brew install nodeelse- brew install node+ brew install node 2>/dev/null || true+ fi+ # Handle "installed but not linked" — common when a previous version left stale symlinks+ if ! command -v node >/dev/null 2>&1; then+ echo " Linking Node.js..."+ if ! brew link --overwrite node 2>/dev/null; then+ # Fix ownership on dirs Homebrew needs to symlink into+ for dir in /usr/local/include/node /usr/local/lib/node_modules /usr/local/share/doc/node; do+ if [ -d "$dir" ] && [ ! -w "$dir" ]; then+ sudo chown -R "$(whoami)" "$dir" 2>/dev/null || true+ fi+ done+ brew link --overwrite node 2>/dev/null || true+ fifielseecho " ${action} Node.js via official installer..."