Installing Dependencies

How to install all Node.js packages and set up your local environment.

Last updated:

Node.js version

BloggFast requires Node.js 18.17 or higher. Verify your version:

bash
node -v
# Should output v18.17.0 or higher

If you need to manage multiple Node versions, we recommend nvm (macOS/Linux) or nvm-windows.

bash
# Using nvm
nvm install 20
nvm use 20

Package manager

BloggFast ships with a package-lock.json (npm). The lock file ensures reproducible installs. If you prefer pnpm or Bun, delete the lock file and install with your preferred package manager — but npm is recommended to stay in sync with the shipped lock file.

Running the install

bash
npm install

This installs all dependencies listed in package.json, including Next.js 16, React 19, Prisma 7, Sanity 4, shadcn/ui, Tailwind CSS v4, the Vercel AI SDK, Resend, and all other packages. The install typically completes in 30–90 seconds.

Note

You may see warnings about peer dependencies or deprecated packages — these are safe to ignore unless the install fails completely.

Optional global tools

These are not required but are useful during development:

bash
# Prisma CLI (for running migrations manually)
npm install -g prisma

# Sanity CLI (for managing Sanity projects)
npm install -g @sanity/cli

Both CLIs are also available locally via npx without global installation.