xkrfer/Telegraph-Image-Pages

你好,我拉取过去部署按照你的方法,显示构建失败

Closed this issue · 7 comments

2023-09-22T09:14:20.849629Z Cloning repository... 2023-09-22T09:14:23.034287Z From https://github.com/tkmm5201/Telegraph-Image-Pages 2023-09-22T09:14:23.035102Z * branch f81fc325ba695154e81005d54c36f0b90ff2bd3e -> FETCH_HEAD 2023-09-22T09:14:23.035334Z 2023-09-22T09:14:23.114965Z HEAD is now at f81fc32 docs 2023-09-22T09:14:23.115645Z 2023-09-22T09:14:23.226433Z 2023-09-22T09:14:23.257922Z Success: Finished cloning repository files 2023-09-22T09:14:24.104137Z Detected the following tools from environment: nodejs@16.15.0, pnpm@8.7.1 2023-09-22T09:14:24.105215Z Installing nodejs 16.15.0 2023-09-22T09:14:25.339585Z Trying to update node-build... ok 2023-09-22T09:14:25.630372Z Downloading node-v16.15.0-linux-x64.tar.gz... 2023-09-22T09:14:25.630743Z -> https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.gz 2023-09-22T09:14:26.951497Z 2023-09-22T09:14:26.951884Z WARNING: node-v16.15.0-linux-x64 is in LTS Maintenance mode and nearing its end of life. 2023-09-22T09:14:26.952122Z It only receives *critical* security updates, *critical* bug fixes and documentation updates. 2023-09-22T09:14:26.952334Z 2023-09-22T09:14:26.952542Z Installing node-v16.15.0-linux-x64... 2023-09-22T09:14:27.787815Z Installed node-v16.15.0-linux-x64 to /opt/buildhome/.asdf/installs/nodejs/16.15.0 2023-09-22T09:14:27.788422Z 2023-09-22T09:14:29.675777Z Preparing pnpm@8.7.1 for immediate activation... 2023-09-22T09:14:31.085523Z Installing project dependencies: pnpm install 2023-09-22T09:14:32.17588Z  ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE  Cannot perform a frozen installation because the version of the lockfile is incompatible with this version of pnpm 2023-09-22T09:14:32.176355Z 2023-09-22T09:14:32.176801Z Try either: 2023-09-22T09:14:32.177016Z 1. Aligning the version of pnpm that generated the lockfile with the version that installs from it, or 2023-09-22T09:14:32.177191Z 2. Migrating the lockfile so that it is compatible with the newer version of pnpm, or 2023-09-22T09:14:32.177364Z 3. Using "pnpm install --no-frozen-lockfile". 2023-09-22T09:14:32.177529Z Note that in CI environments, this setting is enabled by default. 2023-09-22T09:14:32.225059Z Error: Exit with error code: 1 2023-09-22T09:14:32.225561Z at ChildProcess.<anonymous> (/snapshot/dist/run-build.js) 2023-09-22T09:14:32.225854Z at Object.onceWrapper (node:events:652:26) 2023-09-22T09:14:32.226682Z at ChildProcess.emit (node:events:537:28) 2023-09-22T09:14:32.226897Z at ChildProcess._handle.onexit (node:internal/child_process:291:12) 2023-09-22T09:14:32.235458Z Failed: build command exited with code: 1 2023-09-22T09:14:33.117472Z Failed: error occurred while running build command

xkrfer commented

@tkmm5201 cloudflare构建部署-构建配置贴一下你是怎么设置。我刚刚重新构建部署是成功的。
image

xkrfer commented

@tkmm5201 我刚刚更新了代码,现在应该不会使用pnpm安装依赖了。

我也是按照你的教程一步一步填写的
image
image
到部署环境这里显示是构建应用程序失败。
@xkrfer

xkrfer commented

@tkmm5201 你把这个文件【pnpm-lock.yaml】删了再构建一次呢?或者你同步一下仓库,我最新提交的代码里已经把pnpm-lock.yaml这个文件删了。

方法还是按照你的md文档里的设置吗?

xkrfer commented

@tkmm5201 是的

@xkrfer 谢谢 大佬已经部署成功了
image