Kuingsmile / word-GPT-Plus

Word GPT Plus is a word add-in which integrates the chatGPT model into Microsoft Word. Both official and web api is supported.
MIT License
629 stars 97 forks source link

[Bug]: 如何在自己的ClodFlare上搭建本项目 #26

Closed behinder85 closed 9 months ago

behinder85 commented 9 months ago

前置阅读 | Pre-reading

服务类型 | Service Type

Self-hosted service

系统信息 | System Information

Windows

Office 版本 | Office Version

office 2021

问题重现 | Bug reproduce

附上CF Pages的日志 2023-09-20T05:54:22.807792582Z Cloning repository... 2023-09-20T05:54:23.727540051Z From https://github.com/zxj1009587922/word-GPT-Plus 2023-09-20T05:54:23.727582412Z * branch 56bf1cd04d0b7d7b9e31e9a35c6b66987d8098e9 -> FETCH_HEAD 2023-09-20T05:54:23.727587792Z
2023-09-20T05:54:23.799018416Z HEAD is now at 56bf1cd :arrow_up: Upgrade(custom): upgrade office.js 2023-09-20T05:54:23.799371614Z
2023-09-20T05:54:23.91277168Z
2023-09-20T05:54:23.9479103Z Success: Finished cloning repository files 2023-09-20T05:54:24.733809161Z Detected the following tools from environment: yarn@3.6.3, nodejs@18.17.1 2023-09-20T05:54:24.734334145Z Installing project dependencies: yarn 2023-09-20T05:54:25.509928718Z ➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍 2023-09-20T05:54:25.510638914Z
2023-09-20T05:54:25.672692962Z ➤ YN0000: ┌ Resolution step 2023-09-20T05:54:27.904918378Z ➤ YN0061: │ core-js@npm:2.6.12 is deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. 2023-09-20T05:54:30.285453196Z ➤ YN0061: │ consolidate@npm:0.15.1 is deprecated: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog 2023-09-20T05:54:30.690717526Z ➤ YN0061: │ @babel/plugin-proposal-class-properties@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. 2023-09-20T05:54:32.376381277Z ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged 2023-09-20T05:54:32.633053407Z ➤ YN0061: │ memfs@npm:3.6.0 is deprecated: this will be v4 2023-09-20T05:54:33.240584887Z ➤ YN0061: │ stable@npm:0.1.8 is deprecated: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility 2023-09-20T05:54:40.203641222Z ➤ YN0002: │ @vueuse/core@npm:9.13.0 doesn't provide vue (p15bc2), requested by vue-demi 2023-09-20T05:54:40.204168662Z ➤ YN0002: │ @vueuse/shared@npm:9.13.0 doesn't provide vue (pf1043), requested by vue-demi 2023-09-20T05:54:41.317347Z Failed: error occurred while running build command 2023-09-20T05:54:40.204203583Z ➤ YN0002: │ word-gpt-plus@workspace:. doesn't provide webpack (pc52ac), requested by stylus-loader 2023-09-20T05:54:40.2052344Z ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements for details, where is the six-letter p-prefixed code 2023-09-20T05:54:40.207233385Z ➤ YN0000: └ Completed in 14s 534ms 2023-09-20T05:54:40.301181398Z ➤ YN0000: ┌ Post-resolution validation 2023-09-20T05:54:40.301592458Z ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden. 2023-09-20T05:54:40.301931572Z ➤ YN0000: └ Completed 2023-09-20T05:54:40.302227417Z ➤ YN0000: Failed with errors in 14s 631ms 2023-09-20T05:54:40.425317755Z Error: Exit with error code: 1 2023-09-20T05:54:40.425803711Z at ChildProcess. (/snapshot/dist/run-build.js) 2023-09-20T05:54:40.426100785Z at Object.onceWrapper (node:events:652:26) 2023-09-20T05:54:40.42635524Z at ChildProcess.emit (node:events:537:28) 2023-09-20T05:54:40.426602932Z at ChildProcess._handle.onexit (node:internal/child_process:291:12) 2023-09-20T05:54:40.434262053Z Failed: build command exited with code: 1

Kuingsmile commented 9 months ago

image image

设置16.19.0试试 cloudflare pages里

behinder85 commented 9 months ago

还是不行😢 2023-09-20T06:03:51.623978623Z Cloning repository... 2023-09-20T06:03:52.496119486Z From https://github.com/zxj1009587922/word-GPT-Plus 2023-09-20T06:03:52.496382551Z branch 56bf1cd04d0b7d7b9e31e9a35c6b66987d8098e9 -> FETCH_HEAD 2023-09-20T06:03:52.496533015Z
2023-09-20T06:03:52.566206792Z HEAD is now at 56bf1cd :arrow_up: Upgrade(custom): upgrade office.js 2023-09-20T06:03:52.566545271Z
2023-09-20T06:03:52.676239353Z
2023-09-20T06:03:52.708947722Z Success: Finished cloning repository files 2023-09-20T06:03:53.520361765Z Detected the following tools from environment: nodejs@16.19.0, yarn@3.6.3 2023-09-20T06:03:53.521001267Z Installing nodejs 16.19.0 2023-09-20T06:03:54.675211664Z Trying to update node-build... ok 2023-09-20T06:03:54.953483662Z Downloading node-v16.19.0-linux-x64.tar.gz... 2023-09-20T06:03:54.954198162Z -> https://nodejs.org/dist/v16.19.0/node-v16.19.0-linux-x64.tar.gz 2023-09-20T06:03:56.314753109Z
2023-09-20T06:03:56.315200395Z WARNING: node-v16.19.0-linux-x64 is in LTS Maintenance mode and nearing its end of life. 2023-09-20T06:03:56.315947864Z It only receives
critical security updates, critical* bug fixes and documentation updates. 2023-09-20T06:03:56.315967606Z
2023-09-20T06:03:56.315972941Z Installing node-v16.19.0-linux-x64... 2023-09-20T06:03:57.16497215Z Installed node-v16.19.0-linux-x64 to /opt/buildhome/.asdf/installs/nodejs/16.19.0 2023-09-20T06:03:57.165515777Z
2023-09-20T06:03:58.991770498Z Preparing yarn@3.6.3 for immediate activation... 2023-09-20T06:03:59.543403915Z Installing project dependencies: yarn 2023-09-20T06:04:00.267495945Z ➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍 2023-09-20T06:04:00.268215021Z
2023-09-20T06:04:00.434051847Z ➤ YN0000: ┌ Resolution step 2023-09-20T06:04:03.104800358Z ➤ YN0061: │ core-js@npm:2.6.12 is deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. 2023-09-20T06:04:05.128334049Z ➤ YN0061: │ @babel/plugin-proposal-class-properties@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. 2023-09-20T06:04:05.162367362Z ➤ YN0061: │ consolidate@npm:0.15.1 is deprecated: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog 2023-09-20T06:04:07.391940117Z ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged 2023-09-20T06:04:07.628448992Z ➤ YN0061: │ memfs@npm:3.6.0 is deprecated: this will be v4 2023-09-20T06:04:07.748536993Z ➤ YN0061: │ stable@npm:0.1.8 is deprecated: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility 2023-09-20T06:04:14.152199552Z ➤ YN0002: │ @vueuse/core@npm:9.13.0 doesn't provide vue (p15bc2), requested by vue-demi 2023-09-20T06:04:14.152910393Z ➤ YN0002: │ @vueuse/shared@npm:9.13.0 doesn't provide vue (pf1043), requested by vue-demi 2023-09-20T06:04:14.153214778Z ➤ YN0002: │ word-gpt-plus@workspace:. doesn't provide webpack (pc52ac), requested by stylus-loader 2023-09-20T06:04:14.153720325Z ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements for details, where is the six-letter p-prefixed code 2023-09-20T06:04:14.155184378Z ➤ YN0000: └ Completed in 13s 721ms 2023-09-20T06:04:14.244329509Z ➤ YN0000: ┌ Post-resolution validation 2023-09-20T06:04:14.244462572Z ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden. 2023-09-20T06:04:14.244652426Z ➤ YN0000: └ Completed 2023-09-20T06:04:14.244867722Z ➤ YN0000: Failed with errors in 13s 812ms 2023-09-20T06:04:14.358318491Z Error: Exit with error code: 1 2023-09-20T06:04:14.359041493Z at ChildProcess. (/snapshot/dist/run-build.js) 2023-09-20T06:04:14.359073938Z at Object.onceWrapper (node:events:652:26) 2023-09-20T06:04:14.3590801Z at ChildProcess.emit (node:events:537:28) 2023-09-20T06:04:14.359085333Z at ChildProcess._handle.onexit (node:internal/child_process:291:12) 2023-09-20T06:04:14.369002509Z Failed: build command exited with code: 1

image image

Kuingsmile commented 9 months ago
01:09:49.372 | > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available. -- | -- 01:09:49.793 | Installing NPM modules using Yarn version 1.22.4

是不是yarn版本的问题,查了下log我这边build的log里用的是yarn 1.22.4,我看你的log里是

2023-09-20T06:03:53.520361765Z Detected the following tools from environment: nodejs@16.19.0, yarn@3.6.3

behinder85 commented 9 months ago

加了个环境变量就可以啦,感谢!😁👍 image