TeamHealix / WSL_SETUP_FIXED.md
mackenzietechdocs's picture
project-init-alpha (#2)
c6a01e9 verified
|
raw
history blame
2.77 kB

WSL NPM Setup - Fix Summary

βœ… Issues Fixed

1. npm Not Found in WSL

  • Problem: npm wasn't installed in WSL Ubuntu environment
  • Solution: Verified Node.js 18+ and npm 9.2.0 were already installed via apt
  • Result: βœ… npm and Node.js ready to use

2. Incorrect Anthropic SDK Package Name

  • Problem: @anthropic-sdk/sdk@^0.24.0 doesn't exist in npm registry
  • Original: @anthropic-sdk/sdk
  • Fixed to: @anthropic-ai/sdk@^0.70.0
  • Result: βœ… Package found and installed

3. TypeScript Compilation Errors

  • Problem: Strict type casting issues in src/index.ts
  • Solution: Changed casts to as unknown as TypeName format
  • Result: βœ… TypeScript compiles successfully

4. Deprecated Import in helpers.ts

  • Problem: @anthropic-sdk/sdk import path was incorrect
  • Fixed to: @anthropic-ai/sdk
  • Result: βœ… Import resolves correctly

5. Unsupported API Parameter

  • Problem: response_format parameter not supported in SDK v0.70.0
  • Solution: Removed response_format from Anthropic API call
  • Result: βœ… API call compatible

6. Python Virtual Environment

  • Problem: System Python had externally-managed environment restrictions
  • Solution: Created venv virtual environment
  • Result: βœ… All Python packages installed in venv

πŸ“¦ What's Installed

Node.js Packages

β”œβ”€β”€ @anthropic-ai/[email protected]
β”œβ”€β”€ @types/[email protected]
β”œβ”€β”€ [email protected]
└── [email protected]

Python Packages (in venv)

πŸš€ Ready to Use

From WSL Terminal

# Navigate to project
cd /mnt/c/Users/rarev/Code/TeamHealix

# Activate Python environment
source venv/bin/activate

# Build TypeScript
npm run build

# Run MCP Server
npm run start

# Or run Gradio app (in another terminal)
python app.py

Quick Setup Script

bash setup-wsl.sh

πŸ“‹ Project Status

βœ… TypeScript compiles without errors βœ… All npm dependencies installed βœ… All Python dependencies installed (in venv) βœ… Node.js v18.19.1 and npm v9.2.0 available βœ… Python 3.12 available βœ… Ready for hackathon demo

πŸ”§ If Issues Persist

  1. Verify npm in WSL:

    wsl bash -c "npm --version"
    
  2. Rebuild from scratch:

    wsl bash -c "cd /mnt/c/Users/rarev/Code/TeamHealix && rm -rf node_modules venv && npm install"
    
  3. Check TypeScript build:

    wsl bash -c "cd /mnt/c/Users/rarev/Code/TeamHealix && npm run build"
    

Your HealixPath project is now fully configured for WSL! πŸŽ‰