surjithctly / astroship

Astroship is a starter template for startups, marketing websites, landing pages & blog. Built with Astro & TailwindCSS
https://astroship.web3templates.com/
GNU General Public License v3.0
1.39k stars 339 forks source link

Vercel deployment fails - Error: Command "pnpm install" exited with 1 #34

Closed trevorwelch closed 1 year ago

trevorwelch commented 1 year ago

I'm using a pretty stock version (no pnpm) on my local and it builds fine. Is there a way to remove pnpm so that it doesn't try to build from that on Vercel?

ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
--
22:55:00.873 |  
22:55:00.873 | Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
22:55:00.874 |  
22:55:00.874 | Failure reason:
22:55:00.874 | specifiers in the lockfile ({"@astrojs/image":"^0.17.2","@astrojs/mdx":"^0.19.7","@astrojs/sitemap":"^2.0.1","@astrojs/tailwind":"^4.0.0","@fontsource-variable/inter":"^5.0.5","@tailwindcss/typography":"^0.5.9","astro":"^2.9.7","astro-icon":"^0.8.1","astro-navbar":"^2.0.1","astro-seo":"^0.7.5","sharp":"^0.32.4","tailwindcss":"^3.0.24"}) don't match specs in package.json ({"@astrojs/image":"^0.17.2","@astrojs/mdx":"^0.19.7","@astrojs/sitemap":"^2.0.1","@astrojs/tailwind":"^4.0.0","@fontsource-variable/inter":"^5.0.5","@tailwindcss/typography":"^0.5.9","astro":"^2.9.7","astro-icon":"^0.8.1","astro-navbar":"^2.0.1","astro-seo":"^0.7.5","sharp":"^0.32.5","tailwindcss":"^3.0.24"})
22:55:00.903 | Error: Command "pnpm install" exited with 1
trevorwelch commented 1 year ago

Just deleted pnpm-lock.yaml and that solved it