Error lockfile modify forbidden - build stopped

➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
2023-11-29T01:21:47.609272Z ➤ YN0000: └ Completed
2023-11-29T01:21:47.609467Z ➤ YN0000: Failed with errors in 0s 23ms
2023-11-29T01:21:47.68457Z Error: Exit with error code: 1
2023-11-29T01:21:47.685212Z at ChildProcess. (/snapshot/dist/run-build.js)
2023-11-29T01:21:47.685462Z at Object.onceWrapper (node:events:652:26)
2023-11-29T01:21:47.685614Z at ChildProcess.emit (node:events:537:28)
2023-11-29T01:21:47.685915Z at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2023-11-29T01:21:47.692219Z Failed: build command exited with code: 1
2023-11-29T01:21:48.645931Z Failed: error occurred while running build command

You’re probably using Yarn 1, so add an env var YARN_VERSION with the value 1

Other major versions try to migrate the lock file to that version.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.