This guide ensures easy installation for all users, regardless of their system.
Check if already installed:
node --version # Should be v18 or higher
npm --version # Should be v9 or higherIf not installed:
- Windows/Mac: Download from nodejs.org (LTS version)
- Linux (Ubuntu):
sudo apt update sudo apt install nodejs npm
git clone https://github.com/Stackbilt-dev/equity-scenario-sim.git
cd equity-scenario-simYarn handles dependencies better on Windows:
npm install -g yarnOr if you prefer npm, skip this step.
Option A: Using Yarn (Recommended)
yarn installOption B: Using npm
npm installIf you get an npm error on Windows about @rollup/rollup-win32-x64-msvc, try:
npm install --legacy-peer-depsOr just use yarn instead:
npm install -g yarn
yarn install # This usually works betterWith Yarn:
yarn devWith npm:
npm run devYou should see:
VITE v6.2.0 ready in XXX ms
➜ Local: http://localhost:5173/
➜ press h to show help
Open your browser to: http://localhost:5173/
You're ready to start using Equity Scenario Sim!
Best approach: Use Yarn
# Install Node.js from nodejs.org (LTS)
# Then in PowerShell or Command Prompt:
npm install -g yarn
git clone https://github.com/Stackbilt-dev/equity-scenario-sim.git
cd equity-scenario-sim
yarn install
yarn dev
# Open http://localhost:5173/If you get npm errors: Switch to Yarn (recommended above)
# Option 1: Using Homebrew
brew install node
brew install yarn
# Option 2: Download from nodejs.org
# Then:
git clone https://github.com/Stackbilt-dev/equity-scenario-sim.git
cd equity-scenario-sim
yarn install
yarn dev
# Open http://localhost:5173/sudo apt update
sudo apt install nodejs npm yarn
git clone https://github.com/Stackbilt-dev/equity-scenario-sim.git
cd equity-scenario-sim
yarn install
yarn dev
# Open http://localhost:5173/All three work - choose one:
# Install globally
npm install -g yarn
# Use for this project
yarn install
yarn dev
yarn build
yarn previewPros: Better Windows support, faster Cons: Requires separate installation
npm install
npm run dev
npm run build
npm run previewPros: Built into Node.js, no extra installation Cons: Known Windows optional dependencies issue
npm install -g pnpm
# Use for this project
pnpm install
pnpm run dev
pnpm run build
pnpm run previewPros: Fast, efficient Cons: Requires separate installation
Solution: Use Yarn instead
npm install -g yarn
yarn install
yarn devSolution: Install Node.js
- Go to nodejs.org
- Download LTS version
- Run installer
- Restart terminal/command prompt
- Verify:
node --versionandnpm --version
Solution 1: Use different port
yarn dev --port 3000 # or npm run dev -- --port 3000Solution 2: Kill the process using port 5173
- Windows (PowerShell as admin):
Get-Process | Where-Object {$_.Port -eq 5173} | Stop-Process
- Mac/Linux:
lsof -i :5173 kill -9 <PID>
Solution: Install Git
- Windows/Mac: Download from git-scm.com
- Linux:
sudo apt install git
After setup, verify everything works:
# 1. Check Node.js version (should be 18+)
node --version
# 2. Check npm version (should be 9+)
npm --version
# 3. Check yarn version (optional, if using yarn)
yarn --version
# 4. Check git version
git --version
# 5. Test the dev server
cd equity-scenario-sim
yarn dev # or npm run dev
# 6. Open browser to http://localhost:5173/
# 7. You should see the Equity Scenario Sim app✅ If all checks pass, you're ready to go!
equity-scenario-sim/
├── node_modules/ (installed dependencies)
├── assets/ (images and static assets)
├── components/ (React components)
├── App.tsx (main application component)
├── index.tsx (application entry point)
├── index.html (HTML template)
├── types.ts (TypeScript type definitions)
├── dist/ (build output, after npm run build)
├── package.json
├── tsconfig.json
├── vite.config.ts
├── README.md
├── LICENSE
└── ... (other files)
When ready to deploy:
# Build for production
yarn build # or npm run build
# This creates optimized files in dist/
# Preview the production build locally
yarn preview # or npm run previewAfter building, you can:
- Host on a web server - Copy
dist/folder to server - Deploy to Vercel -
vercel --prod - Deploy to Netlify - Connect GitHub repo
- Deploy to GitHub Pages - Use deployment action
- Self-host - Use any static file server
| Command | npm | yarn | What it does |
|---|---|---|---|
| Install deps | npm install |
yarn install |
Install dependencies |
| Dev server | npm run dev |
yarn dev |
Start development server |
| Build | npm run build |
yarn build |
Build for production |
| Preview | npm run preview |
yarn preview |
Preview production build |
| Type check | tsc --noEmit |
tsc --noEmit |
Check TypeScript |
- ✅ Installation complete
- 📖 Read README.md for features overview
- 👨💻 Review CONTRIBUTING.md to contribute
- 🤝 Follow CODE_OF_CONDUCT.md community standards
Setup Issues?
- Check TROUBLESHOOTING.md
- Review error messages carefully
- Open GitHub Issue
Other Questions?
- 📚 Check README.md
- 📋 Read CONTRIBUTING.md
| Requirement | Minimum | Recommended |
|---|---|---|
| Node.js | v18 | v20+ |
| npm | v9 | v10+ |
| Disk Space | 500MB | 1GB |
| RAM | 2GB | 4GB+ |
| Browser | ES6 support | Latest version |
You're all set! Start building equity models with Equity Scenario Sim.