Complete setup instructions for running this portfolio locally.
- Node.js 14.16.0 (required - newer versions cause OpenSSL errors)
- Yarn package manager
- Git
NVM lets you switch between Node versions easily.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashRestart your terminal or run:
source ~/.bashrcnvm install 14.16.0
nvm use 14.16.0Verify:
node --version
# Should output: v14.16.0git clone https://github.com/YOUR-USERNAME/YOUR-REPO.git
cd YOUR-REPOyarn installyarn startOr explicitly with the correct Node version:
PATH="$HOME/.nvm/versions/node/v14.16.0/bin:$PATH" npx gatsby developerror:0308010C:digital envelope routines::unsupported
Cause: Wrong Node version (Node 17+ uses OpenSSL 3 which breaks webpack)
Fix: Use Node 14.16.0:
nvm use 14.16.0If you see stale content or weird errors:
yarn clean
yarn startSomething is already running at port 8000
Fix: Either:
- Use a different port (Gatsby will prompt you)
- Kill the existing process:
kill $(lsof -t -i:8000)
Build static files:
yarn buildPreview production build locally:
yarn serveOpens at http://localhost:9000
- Push code to GitHub
- Go to netlify.com
- Click "Add new site" → "Import an existing project"
- Connect your GitHub repo
- Build settings (auto-detected from
netlify.toml):- Build command:
npm run build - Publish directory:
public
- Build command:
- Click "Deploy site"
The netlify.toml ensures Node 14.16.0 is used during build.