Next.js Discord

Discord Forum

Pnpm fails to install on vercel with nextjs

Answered
CHEEMDA MAN posted this in #help-forum
Open in Discord
Hey there, i was trying to deploy my nextjs 15 project on vercel using pnpm but it getting failed again and again
Please help if anyone know how to solve this issue
Answered by CHEEMDA MAN
Thanks, it's solved now. The issue occurred because I hadn’t pushed the lock file.
View full answer

8 Replies

@Anay-208 | Ping in replies can you send your `package.json`
{
"name": "badrinath",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build --turbopack",
"start": "next start",
"lint": "eslint"
},
"dependencies": {
"@hookform/resolvers": "^5.2.2",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-slot": "^1.2.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"crypto-js": "^4.2.0",
"date-fns": "^4.1.0",
"framer-motion": "^12.23.18",
"lucide-react": "^0.543.0",
"next": "15.5.2",
"react": "19.1.0",
"react-day-picker": "^9.11.0",
"react-dom": "19.1.0",
"react-hook-form": "^7.63.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.3.1",
"zod": "^4.1.11"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"eslint": "^9",
"eslint-config-next": "15.5.2",
"tailwindcss": "^4",
"tw-animate-css": "^1.3.8"
}
}
@Anay-208 | Ping in replies
can you try specifying the package Manger in package.json, and try regenerating pnpm lockfile
@Anay-208 | Ping in replies can you try specifying the package Manger in `package.json`, and try regenerating pnpm lockfile
Wait is it possible that this issue occurs because i didn't push the lock file?
@Anay-208 | Ping in replies it could be, I'm unsure
Thanks, it's solved now. The issue occurred because I hadn’t pushed the lock file.
Answer