Prerequisites
Before installing the portfolio, ensure your development environment meets these requirements:Required Software
Node.js
Git
Code Editor
VS Code recommendedInstall from code.visualstudio.comRecommended extensions:
- ESLint
- Prettier
- Tailwind CSS IntelliSense
System Requirements
- Operating System: Windows 10+, macOS 10.15+, or Linux
- RAM: 4GB minimum, 8GB recommended
- Disk Space: 500MB for dependencies
- Browser: Modern browser (Chrome, Firefox, Safari, Edge)
Detailed Installation Steps
Install Dependencies
Install all required packages. Choose your preferred package manager:This installs all dependencies from
package.json:Core Dependencies:next@^16.1.5- Next.js frameworkreact@^19.2.3- React libraryreact-dom@^19.2.3- React DOMtypescript@^5- TypeScript
tailwindcss@^4- Tailwind CSS@radix-ui/*- UI component primitivesframer-motion@^12.17.0- Animationslucide-react@^0.514.0- Icons
react-hook-form@^7.57.0- Form handlingzod@^3.25.58- Schema validation@hookform/resolvers@^5.1.1- Form resolvers
zustand@^5.0.11- State managementsonner@^2.0.5- Toast notificationsclsx@^2.1.1- Class utilities
Installation time varies by package manager:
- npm: 2-4 minutes
- yarn: 1-3 minutes
- pnpm: 30 seconds - 2 minutes (uses shared cache)
Environment Configuration
The portfolio uses environment variables for configuration. While the portfolio can run without environment variables, some features require them:Optional Environment Variables:Create a Add the following variables (all optional):
.env.local file in the project root:For Production: Replace
http://localhost:3000 with your actual domain when deploying.Environment Variable Details
NEXT_PUBLIC_URL- Used in metadata and OpenGraph tags
- Default:
http://localhost:3000(fromlayout.tsx:21) - Set this to your production URL when deploying
NEXT_PUBLIC_GA_ID- Google Analytics measurement ID
- Optional: Only needed if using Google Analytics
- Format:
G-XXXXXXXXXX
ANALYZE- Bundle analyzer configuration (from
next.config.ts:4) - Set to
trueto analyze bundle size - Run build to see analyzer:
ANALYZE=true npm run build
Verify Installation
Verify everything is set up correctly before starting development:All commands should complete without errors.
Troubleshooting Installation Issues
Common Issues and Solutions
Node.js Version Mismatch
Node.js Version Mismatch
Error:
error: The engine "node" is incompatible with this moduleSolution: Upgrade Node.js to version 20 or later.Consider using nvm (Node Version Manager) to manage multiple Node.js versions.
Permission Errors During Installation
Permission Errors During Installation
Error: Windows: Run terminal as Administrator or check Windows Defender settings.
EACCES: permission denied or EPERM: operation not permittedSolution: Fix npm permissions (avoid using sudo):Dependency Installation Fails
Dependency Installation Fails
Error: Various npm/yarn errors during installationSolution: Clear cache and reinstall:
Port 3000 Already in Use
Port 3000 Already in Use
Error:
Error: listen EADDRINUSE: address already in use :::3000Solution: Use a different port or stop the process using port 3000:Module Not Found Errors
Module Not Found Errors
Error:
Error: Cannot find module 'xyz' or Module not found: Can't resolve 'xyz'Solution: Ensure all dependencies are installed and TypeScript paths are configured:TypeScript Errors
TypeScript Errors
Error: Various TypeScript compilation errorsSolution: Verify TypeScript configuration and dependencies:
Turbopack Issues
Turbopack Issues
Error: Issues with Turbopack or slow compilationSolution: Disable Turbopack temporarily:Or run directly:
Report Turbopack issues to the Next.js team as it’s still in active development.
Build Failures
Build Failures
Error: Production build fails with various errorsSolution: Identify and fix build-time issues:
Verification Steps
After installation, verify everything works correctly:Visual Verification
Open
http://localhost:3000 in your browser and verify:- ✅ Page loads without errors
- ✅ Hero section displays with animations
- ✅ Navigation menu works
- ✅ Images load correctly (may show placeholder if Cloudinary isn’t configured)
- ✅ Smooth scrolling between sections
- ✅ Contact form renders properly
- ✅ Footer displays correctly
Console Verification
Open browser DevTools (F12) and check:
- ✅ No red errors in Console tab
- ✅ No 404 errors in Network tab
- ✅ No hydration warnings
- ✅ React DevTools shows component tree (install React DevTools extension)
Hot Reload Test
Test that hot reload works:
- Open
src/app/page.tsxin your editor - Make a visible change (e.g., change some text)
- Save the file
- Browser should update automatically without refresh
Changes should appear in under 1 second with Turbopack enabled.
Post-Installation Configuration
Recommended VS Code Extensions
Install these extensions for the best development experience:Configure Prettier (Optional)
The project includes Prettier configuration (.prettierrc). Configure your editor to format on save:
Configure ESLint (Optional)
ESLint configuration is ineslint.config.mjs. It’s already set up with Next.js and Prettier rules.
Next Steps
Quick Start
Return to the Quick Start guide for a streamlined workflow
Project Structure
Learn about the codebase organization
Customization
Start customizing the portfolio for your needs
Deployment
Deploy your portfolio to production
Getting Additional Help
If you’re still experiencing issues:- Check Documentation: Review relevant sections in this documentation
- Next.js Docs: Visit nextjs.org/docs for framework-specific issues
- GitHub Issues: Check existing issues or create a new one
- Community Support: Ask in Next.js Discord or React communities
- Dependency Issues: Check individual package documentation for specific errors