eliza icon indicating copy to clipboard operation
eliza copied to clipboard

pnpm outdated lockfile error

Open piquebu opened this issue 11 months ago • 6 comments

 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with <ROOT>/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 ({"@0glabs/0g-ts-sdk":"0.2.1","@coinbase/coinbase-sdk":"0.10.0","@deepgram/sdk":"^3.9.0","@vitest/eslint-plugin":"1.0.1","amqplib":"0.10.5","csv-parse":"5.6.0","ollama-ai-provider":"0.16.1","optional":"0.1.4","pnpm":"9.14.4","sharp":"0.33.5","tslog":"4.9.3","@commitlint/cli":"18.6.1","@commitlint/config-conventional":"18.6.3","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"8.16.0","@typescript-eslint/parser":"8.16.0","concurrently":"9.1.0","cross-env":"7.0.3","eslint":"9.16.0","eslint-config-prettier":"9.1.0","husky":"9.1.7","jest":"^29.7.0","lerna":"8.1.5","only-allow":"1.2.1","prettier":"3.4.1","ts-jest":"^29.1.1","turbo":"2.3.3","typedoc":"0.26.11","typescript":"5.6.3","viem":"2.21.58","vite":"5.4.11","vitest":"2.1.5"}) don't match specs in package.json ({"@commitlint/cli":"18.6.1","@commitlint/config-conventional":"18.6.3","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"8.16.0","@typescript-eslint/parser":"8.16.0","@vitest/eslint-plugin":"1.0.1","concurrently":"9.1.0","cross-env":"7.0.3","eslint":"9.16.0","eslint-config-prettier":"9.1.0","husky":"9.1.7","jest":"^29.7.0","lerna":"8.1.5","only-allow":"1.2.1","prettier":"3.4.1","ts-jest":"^29.1.1","turbo":"2.3.3","typedoc":"0.26.11","typescript":"5.6.3","viem":"2.21.58","vite":"5.4.11","vitest":"2.1.5","@0glabs/0g-ts-sdk":"0.2.1","@coinbase/coinbase-sdk":"0.10.0","@deepgram/sdk":"^3.9.0","amqplib":"0.10.5","csv-parse":"5.6.0","langdetect":"^0.2.1","ollama-ai-provider":"0.16.1","optional":"0.1.4","pnpm":"9.14.4","sharp":"0.33.5","tslog":"4.9.3"})

piquebu avatar Jan 12 '25 20:01 piquebu

Hello @piquebu! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

github-actions[bot] avatar Jan 12 '25 20:01 github-actions[bot]

So, have you tried, as this thingy recommends, pnpm install --no-frozen-lockfile ?

unordered-set avatar Jan 12 '25 21:01 unordered-set

Yes I did, also tried older releases which solved the issue. Now I'm just stuck in pnpm build. Turbo not found.

piquebu avatar Jan 12 '25 21:01 piquebu

Screenshot 2025-01-15 170000

getting this error used this command pnpm install --no-frozen-lockfile

Surajbnp avatar Jan 15 '25 11:01 Surajbnp

This error occurs for me also, but only under the develop branch, not main

wesfloyd avatar Jan 15 '25 18:01 wesfloyd

Perhaps this small PR would fix the branch for us? https://github.com/elizaOS/eliza/pull/2330

Or should this be fixed in the ci-cd for this branch 🤔 ?

wesfloyd avatar Jan 15 '25 18:01 wesfloyd

The use of pnpm install --no-frozen-lockfile can occur because of a malformed lock or also when we are developing and run multiple times the pnpm install pnpm build combination.

the command is legit so when you get locked just skip the lock with this pnpm install --no-frozen-lockfile

AIFlowML avatar Jan 16 '25 22:01 AIFlowML