Live demo: https://saabbir.github.io/
This project was built with Node.js v14 and npm v6. It is not compatible with Node.js 16+ or npm 7+ due to legacy dependencies and Nuxt 2 limitations.
If you use a newer Node.js version, you will encounter errors.
- Node.js:
^14.21.1
- npm:
^6.14.17
You can check your versions with:
node -v
npm -v
If you have a newer version installed, use nvm (Node Version Manager) to install and switch to the correct versions:
# Install nvm if you don't have it
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Restart your terminal, then:
nvm install 14.21.1
nvm use 14.21.1
npm install -g npm@6.14.17
-
Clone the repository:
git clone https://github.com/Saabbir/saabbir.github.io.git cd saabbir.github.io
-
Install dependencies:
npm install
If you see errors, double-check your Node.js and npm versions.
-
Run the development server:
npm run dev
The site will be available at http://localhost:3000
- Build for production:
npm run build
- Generate static site:
npm run generate
- Preview generated static site:
npm run start
- Deploy to GitHub Pages:
npm run deploy
This will push the
dist
folder to thegh-pages
branch.
- Dependency or build errors?
- Ensure you are using Node.js 14 and npm 6 (see above).
- Delete
node_modules
andpackage-lock.json
, then reinstall:rm -rf node_modules package-lock.json npm install
- Still having issues?
- Check for OS-specific issues (some dependencies may require build tools).
- Search for the error message online or check the Nuxt 2 docs.
- This project uses legacy dependencies and is not actively maintained for newer Node.js versions.
- For a modern Nuxt project, consider upgrading to Nuxt 3.