Prerequisites
Before installing the template, ensure your system meets these requirements:Required Software
Node.js (version 18 or higher)
Node.js (version 18 or higher)
Node.js is the JavaScript runtime required to run Astro and build your portfolio.Check your version:Install or update:
- Download from nodejs.org
- Or use a version manager like nvm:
pnpm (version 8 or higher)
pnpm (version 8 or higher)
This template uses pnpm as its package manager for faster, more efficient dependency management.Check your version:Install pnpm:Or use Corepack (comes with Node.js 16.13+):
The template specifies
[email protected] in package.json. While newer versions should work, this version is tested and guaranteed to work.Git
Git
Git is needed to clone the repository and manage version control.Check if installed:Install Git:
- Download from git-scm.com
- Or use your system’s package manager:
Optional but Recommended
- Code Editor: VS Code with the Astro extension
- Terminal: A modern terminal like Warp, Hyper, or iTerm2
Installation Methods
Method 1: Clone from GitHub (Recommended)
This is the recommended method for most users.Install dependencies
package.json:- Core:
astro,react,react-dom - Integrations:
@astrojs/react,@astrojs/tailwind,@astrojs/mdx - UI:
tailwindcss,shadcncomponents,lucide-reacticons - Utilities:
typescript,sharp,motion
Method 2: Fork and Clone
If you want to make it your own repository on GitHub:Fork the repository
- Visit github.com/vaibhav227/portfolio
- Click the “Fork” button in the top right
- Choose your GitHub account as the destination
Method 3: Download as ZIP
If you prefer not to use Git:Download the ZIP
- Go to github.com/vaibhav227/portfolio
- Click the green “Code” button
- Select “Download ZIP”
- Extract the ZIP file to your desired location
Project Structure
After installation, your project structure will look like this:Available Scripts
The template includes these npm scripts inpackage.json:
Verification Steps
Verify your installation is working correctly:Check the homepage
Visit
http://localhost:4312 and verify:- The page loads without errors
- You see the bento grid layout with multiple cards
- The intro card displays “Vaibhav Sharma” (this will be your name after customization)
Test navigation
Click through the navigation to verify these pages load:
/projects- Project listing page/posts- Blog posts page/experiences- Experiences timeline/tags- Tag cloud page
Test dark mode
Click the theme toggle (usually in the header) to switch between dark and light modes. Both should work smoothly.
Check content collections
Verify that content is loading from the
src/content/ directory:- Projects appear on the projects page
- Blog posts are listed
- Experiences show up correctly
Troubleshooting
Port 4312 is already in use
Port 4312 is already in use
If port 4312 is already in use, Astro will automatically try the next available port. Check your terminal output for the actual port.To specify a different port:
pnpm command not found
pnpm command not found
Make sure pnpm is installed globally:Or enable Corepack:
Module not found errors
Module not found errors
This usually means dependencies weren’t installed correctly. Try:
TypeScript errors
TypeScript errors
If you see TypeScript errors in your editor:
- Make sure you have the Astro VS Code extension installed
- Restart your editor
- Run
pnpm installto ensure all type definitions are installed
Images not loading
Images not loading
Make sure your images are in the
public/ directory. Images in public/ can be referenced with a leading slash:Sharp installation issues on Apple Silicon
Sharp installation issues on Apple Silicon
Next Steps
Now that you have the template installed and running:Quickstart Guide
Follow the quickstart to customize your portfolio
Configuration
Learn about configuration options
Content Management
Understand how to manage your content
Deployment
Deploy your portfolio to production
If you encounter any issues not covered in the troubleshooting section, check the GitHub Issues or open a new issue.