Nuxt Project Wont Publish

Howdy, ive got a nuxt 2.17 project that works fine locally, running node 18.18.2 (which I have as a CF node env) - but I just cant get past this issue
01:09:54.512 ➤ YN0002: │ ss-quiz@workspace:. doesn't provide vue-template-compiler (p7ea12), requested by @vue/test-utils
01:09:54.512 ➤ YN0002: │ ss-quiz@workspace:. doesn't provide vuex (p4600f), requested by vuex-module-decorators
01:09:54.512 ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
01:09:54.514 ➤ YN0000: └ Completed in 10s 575ms
01:09:54.617 ➤ YN0000: ┌ Post-resolution validation
01:09:54.618 ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
01:09:54.619 ➤ YN0000: └ Completed
01:09:54.619 ➤ YN0000: Failed with errors in 10s 682ms
01:09:54.670 Error: Exit with error code: 1
01:09:54.670 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
01:09:54.670 at Object.onceWrapper (node:events:652:26)
01:09:54.671 at ChildProcess.emit (node:events:537:28)
01:09:54.671 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
01:09:54.679 Failed: build command exited with code: 1
01:09:55.700 Failed: error occurred while running build command
01:09:54.512 ➤ YN0002: │ ss-quiz@workspace:. doesn't provide vue-template-compiler (p7ea12), requested by @vue/test-utils
01:09:54.512 ➤ YN0002: │ ss-quiz@workspace:. doesn't provide vuex (p4600f), requested by vuex-module-decorators
01:09:54.512 ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
01:09:54.514 ➤ YN0000: └ Completed in 10s 575ms
01:09:54.617 ➤ YN0000: ┌ Post-resolution validation
01:09:54.618 ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
01:09:54.619 ➤ YN0000: └ Completed
01:09:54.619 ➤ YN0000: Failed with errors in 10s 682ms
01:09:54.670 Error: Exit with error code: 1
01:09:54.670 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
01:09:54.670 at Object.onceWrapper (node:events:652:26)
01:09:54.671 at ChildProcess.emit (node:events:537:28)
01:09:54.671 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
01:09:54.679 Failed: build command exited with code: 1
01:09:55.700 Failed: error occurred while running build command
I have a yarn.lock file there, and have tried all sorts of build commands, yarn build yarn generate I just can't understand whats wrong, even from that log.
1 Reply
kb
kb7mo ago
for anyone searching this, I needed to match the YARN_VERSION env var on CF, to my local machine. That sorted it out.