Skip to main content

Installation

This guide provides detailed instructions for installing and setting up the ItzHypeR Portfolio on your local machine.

Prerequisites

Before you begin, ensure you have the following installed on your system:

Required Software

Node.js

Version 18 or higher requiredDownload from nodejs.org

npm

Version 9 or higher requiredIncluded with Node.js installation

Verify Your Installation

Check that you have the correct versions installed:
node --version
# Should output: v18.0.0 or higher

npm --version
# Should output: 9.0.0 or higher
Using an older version of Node.js may cause compatibility issues with React 19 and Vite 7. Please upgrade to Node.js v18 or higher.
  • Git - For cloning the repository and version control
  • VS Code or Cursor - Recommended code editors with excellent React support
  • React Developer Tools - Browser extension for debugging

Step-by-Step Installation

1. Install Node.js and npm

If you don’t have Node.js installed:
1

Download Node.js

Visit nodejs.org and download the LTS version for your operating system.
The LTS (Long Term Support) version is recommended for stability.
2

Run the Installer

Run the downloaded installer and follow the prompts. npm is included automatically with Node.js.
3

Verify Installation

Open a new terminal window and verify:
node --version
npm --version
Make sure to open a new terminal window after installation to ensure environment variables are loaded.

2. Clone the Repository

You have two options for obtaining the source code:
git clone https://github.com/xItzHypeR/portfolio.git
cd portfolio

Option B: Clone via SSH

git clone [email protected]:xItzHypeR/portfolio.git
cd portfolio

Option C: Download ZIP

  1. Visit the GitHub repository
  2. Click the green “Code” button
  3. Select “Download ZIP”
  4. Extract the ZIP file
  5. Navigate to the extracted folder in your terminal

3. Install Project Dependencies

Once inside the project directory, install all required dependencies:
npm install
This command installs all dependencies listed in package.json:

Core Dependencies

{
  "dependencies": {
    "@emailjs/browser": "^4.4.1",
    "react": "^19.2.0",
    "react-dom": "^19.2.0",
    "react-router-dom": "^7.13.1",
    "styled-components": "^6.3.11"
  }
}

Development Dependencies

{
  "devDependencies": {
    "@eslint/js": "^9.39.1",
    "@types/react": "^19.2.7",
    "@types/react-dom": "^19.2.3",
    "@vitejs/plugin-react": "^5.1.1",
    "eslint": "^9.39.1",
    "eslint-plugin-react-hooks": "^7.0.1",
    "eslint-plugin-react-refresh": "^0.4.24",
    "globals": "^16.5.0",
    "vite": "^7.3.1"
  }
}
The installation process typically takes 30-90 seconds depending on your internet connection and system performance.

4. Verify the Installation

After installation completes, verify everything is set up correctly:
# Check that node_modules was created
ls -la
# You should see a node_modules/ directory

# Verify package.json exists
cat package.json

5. Start the Development Server

Launch the development server:
npm run dev
Expected output:
VITE v7.3.1  ready in 234 ms

  Local:   http://localhost:5173/
  Network: http://192.168.1.100:5173/
  press h + enter to show help
The development server automatically opens on an available port. If 5173 is taken, Vite will try the next available port.

6. Open in Browser

Navigate to the local URL in your browser:
http://localhost:5173
You should see the portfolio homepage load successfully.

Environment Setup

IDE Configuration

For the best development experience, we recommend configuring your IDE:

VS Code

Install these recommended extensions:
  • ES7+ React/Redux/React-Native snippets - Code snippets
  • ESLint - Code linting
  • Prettier - Code formatting
  • Auto Rename Tag - Automatically rename paired HTML/JSX tags
  • Path Intellisense - Autocomplete file paths
Create a .vscode/settings.json file:
{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "eslint.validate": [
    "javascript",
    "javascriptreact"
  ],
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

Cursor

Cursor comes with excellent React support out of the box. Enable:
  • ESLint integration
  • Auto-import suggestions
  • JSX syntax highlighting

Git Configuration (Optional)

If you plan to maintain your own version:
# Remove the original remote
git remote remove origin

# Add your own repository
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git

# Create a new branch for your changes
git checkout -b customize-portfolio

Troubleshooting

Common Issues and Solutions

Problem: Error message about incompatible Node.js versionSolution:
# Using nvm (Node Version Manager)
nvm install 18
nvm use 18

# Or download and install from nodejs.org
Problem: Permission denied errors during installationSolution:
# Fix npm permissions (Linux/macOS)
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

# Or use npx instead
npx npm install
Problem: Dev server can’t start because port is occupiedSolution:
# Find and kill the process using the port
lsof -ti:5173 | xargs kill -9

# Or use a different port
npm run dev -- --port 3000
Problem: Import errors or missing module errorsSolution:
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install

# Or clear npm cache
npm cache clean --force
npm install
Problem: Changes not reflecting in the browserSolution:
  • Hard refresh the browser (Ctrl+Shift+R or Cmd+Shift+R)
  • Check browser console for errors
  • Restart the dev server
  • Check that you’re editing files inside the src/ directory
Problem: ESLint configuration errorsSolution:
# Verify ESLint config
npx eslint --version

# Run linting manually
npm run lint

# Fix auto-fixable issues
npm run lint -- --fix

System-Specific Issues

Windows

On Windows, use PowerShell or Git Bash instead of Command Prompt for better compatibility with npm scripts.
# If you encounter execution policy errors
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

macOS

If you encounter certificate errors:
# Update npm to latest
npm install -g npm@latest

Linux

If you have permission issues:
# Use nvm instead of system Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 18
nvm use 18

Next Steps

Now that you have the portfolio installed and running:

Quick Start

Jump right in with the quick start guide

Project Structure

Understand the codebase organization

Customization

Customize the portfolio for your needs

Build & Deploy

Build and deploy to production

Additional Resources


Having trouble? Make sure you’ve completed all prerequisite steps and your Node.js version is 18 or higher. Check the troubleshooting section above for common issues.

Build docs developers (and LLMs) love