#!/bin/bash export NVM_DIR="$HOME/.nvm" # Install NVM if not present if [ ! -s "$NVM_DIR/nvm.sh" ]; then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash fi # Load NVM \. "$NVM_DIR/nvm.sh" # Install Node 22 nvm install 22 nvm use 22 # Enable corepack corepack enable # Navigate to project cd /mnt/e/speckle-server # Clean up previously broken native Windows builds if they exist rm -rf node_modules # Install dependencies using yarn yarn install