6 months ago
Hello Support Team, I’m having trouble installing dependencies and running my Discord Bot project on your platform. When I run pnpm install --frozen-lockfile --prefer-offline, I get ERR_PNPM_OUTDATED_LOCKFILE: Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json. I tried removing --frozen-lockfile, deleting pnpm-lock.yaml, and using npm install, but the issue persists. I need help to install all dependencies correctly and run the project without lockfile or TypeScript errors. Thank you.
5 Replies
6 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 Deployment fails: "Cannot create code snapshot" - No logs generated
🧵 Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
If you find the answer from one of these, please let us know by solving the thread!
6 months ago
pnpm install --frozen-lockfile --prefer-offline
469ms
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 ({"@dank074/discord-video-stream":"3.2.0","@discordjs/rest":"^2.4.3","axios":"^1.8.2","canvas":"^3.1.0","colors":"^1.4.0","discord-api-types":"^0.38.16","discord.js":"^14.18.0","discord.js-selfbot-v13":"^3.6.0","fluent-ffmpeg":"^2.1.3","humanize-duration":"^3.32.1","moment-timezone":"^0.5.47","mongoose":"^8.10.1","ms":"^2.1.3","node-schedule":"^2.1.1","numeral":"^2.0.6","pidusage":"^4.0.0","sharp":"^0.33.5","ts-node":"^10.9.1","concurrently":"^7.3.0","nodemon":"^2.0.19"}) don't match specs in package.json ({"concurrently":"^7.3.0","nodemon":"^2.0.19","typescript":"^5.6.3","@types/node":"^20.10.6","@dank074/discord-video-stream":"3.2.0","@discordjs/rest":"^2.4.3","axios":"^1.8.2","canvas":"^3.1.0","colors":"^1.4.0","discord-api-types":"^0.38.16","discord.js":"^14.18.0","discord.js-selfbot-v13":"^3.6.0","fluent-ffmpeg":"^2.1.3","humanize-duration":"^3.32.1","moment-timezone":"^0.5.47","mongoose":"^8.10.1","ms":"^2.1.3","node-schedule":"^2.1.1","numeral":"^2.0.6","pidusage":"^4.0.0","sharp":"^0.33.5","ts-node":"^10.9.1"})
ERROR: failed to build: failed to solve: process "pnpm install --frozen-lockfile --prefer-offline" did not complete successfully: exit code: 1
Status changed to Solved zam7asu • 6 months ago
Railway
Hey there! We've found the following might help you get unblocked faster: - [📚 No Start Command Could be Found](https://docs.railway.com/reference/errors/no-start-command-could-be-found) - [🧵 Deployment fails: "Cannot create code snapshot" - No logs generated](https://station.railway.com/questions/deployment-fails-cannot-create-code-sn-18504adc) - [🧵 PostGress Error](https://station.railway.com/questions/post-gress-error-86b77d2a) - [🧵 Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent](https://station.railway.com/questions/cannot-install-with-frozen-lockfile-be-be29918d) If you find the answer from one of these, please let us know by solving the thread!
6 months ago
pnpm install --frozen-lockfile --prefer-offline
469ms
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 ({"@dank074/discord-video-stream":"3.2.0","@discordjs/rest":"^2.4.3","axios":"^1.8.2","canvas":"^3.1.0","colors":"^1.4.0","discord-api-types":"^0.38.16","discord.js":"^14.18.0","discord.js-selfbot-v13":"^3.6.0","fluent-ffmpeg":"^2.1.3","humanize-duration":"^3.32.1","moment-timezone":"^0.5.47","mongoose":"^8.10.1","ms":"^2.1.3","node-schedule":"^2.1.1","numeral":"^2.0.6","pidusage":"^4.0.0","sharp":"^0.33.5","ts-node":"^10.9.1","concurrently":"^7.3.0","nodemon":"^2.0.19"}) don't match specs in package.json ({"concurrently":"^7.3.0","nodemon":"^2.0.19","typescript":"^5.6.3","@types/node":"^20.10.6","@dank074/discord-video-stream":"3.2.0","@discordjs/rest":"^2.4.3","axios":"^1.8.2","canvas":"^3.1.0","colors":"^1.4.0","discord-api-types":"^0.38.16","discord.js":"^14.18.0","discord.js-selfbot-v13":"^3.6.0","fluent-ffmpeg":"^2.1.3","humanize-duration":"^3.32.1","moment-timezone":"^0.5.47","mongoose":"^8.10.1","ms":"^2.1.3","node-schedule":"^2.1.1","numeral":"^2.0.6","pidusage":"^4.0.0","sharp":"^0.33.5","ts-node":"^10.9.1"})
ERROR: failed to build: failed to solve: process "pnpm install --frozen-lockfile --prefer-offline" did not complete successfully: exit code: 1
Status changed to Awaiting Railway Response Railway • 6 months ago
6 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 6 months ago
6 months ago
run pnpm install, and commit the changes
6 months ago
the lockfile isnt updated