S
SolidJS2y ago
Grahf

Deployment Failure on Netlify

Not sure if the problem is with the lockfile or the pnpm version? 2:37:15 PM: Found pnpm version (7.13.4) that doesn't match expected () Usage Error: Invalid package manager specification in CLI arguments; expected a semver version, range, or tag 2:37:15 PM: $ corepack prepare [--activate] [--all] [--json] [-o,--output] ... 2:37:15 PM: No pnpm workspaces detected 2:37:15 PM: Started restoring cached node modules 2:37:15 PM: Finished restoring cached node modules 2:37:15 PM: Installing npm packages using pnpm version 7.13.4 2:37:15 PM: Lockfile is up to date, resolution step is skipped 2:37:15 PM:  ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with frozen-lockfile because pnpm-lock.yaml is not up to date with package.json 2:37:15 PM: 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 2:37:15 PM: Error during pnpm install 2:37:15 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1 2:37:15 PM: Failing build: Failed to install dependencies
3 Replies
Tommypop
Tommypop2y ago
You should just need to update your lock file Or remove it and a new one should be generated
Grahf
GrahfOP2y ago
Thanks... I deleted the package lock json and that didn't work. Then I deleted the pnpm lock and it worked 🤗
Tommypop
Tommypop2y ago
awesome package.lock I think is generated by npm and pnpm doesn't use it
Want results from more Discord servers?
Add your server