반응형
Error
Vercel을 이용해서 NestJS 소스 배포 시, 아래와 같은 에러가 발생함.
ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
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"
Failure reason:
specifiers in the lockfile ({"@tailwindcss/postcss":"4.0.0-alpha.13","@types/node":"20.11.17","@types/react":"18.2.55","@types/react-dom":"18.2.19","@vercel/analytics":"^1.1.3","@vercel/speed-insights":"^1.0.9","geist":"1.2.2","next":"canary","next-mdx-remote":"^4.4.1","postcss":"^8.4.35","react":"18.2.0","react-dom":"18.2.0","sugar-high":"^0.6.0","tailwindcss":"4.0.0-alpha.13","typescript":"5.3.3"}) don't match specs in package.json ({"@tailwindcss/postcss":"4.0.0-alpha.13","@types/node":"20.11.17","@types/react":"18.2.55","@types/react-dom":"18.2.19","@vercel/analytics":"^1.1.3","@vercel/speed-insights":"^1.0.9","@wtfcode/byte-converter":"^2.0.8","geist":"1.2.2","next":"canary","next-mdx-remote":"^4.4.1","postcss":"^8.4.35","react":"18.2.0","react-dom":"18.2.0","sugar-high":"^0.6.0","tailwindcss":"4.0.0-alpha.13","typescript":"5.3.3"})
Error: Command "pnpm install" exited with 1
반응형
Solution
pnpm-lock.yaml 파일을 package.json 파일과 동기화해야함. 아래와 같이 pnpm install 명령어를 통해 pnpm-lock.yaml파일을 업데이트, 푸시 후 빌드하면 정상동작함.
pnpm install
Thank you!
반응형