easydu2002 / chat_gpt_oicq

ChatGPT qq机器人 谁不想拥有一只可爱的猫娘呢~
MIT License
284 stars 38 forks source link

错误报告:npm run build 打包后控制台显示警告 #39

Closed upane closed 1 year ago

upane commented 1 year ago

检查清单

背景信息 当前版本:当前的版本号。 系统:win11系统 VScode本地打包 发布版本:使用的是二进制,npm,还是其他发布版本? API使用:设置的是官方还是第三方API?

错误复现步骤 1.npm run dev能运行

  1. npm run build 报错
  2. ps: Fetching base Node.js binaries to PKG_CACHE_PATH , PKG_CACHE_PATH 这个很慢我是自己下载改名了下,这步应该问题不大吧。。

错误描述 预期行为:打包成功 实际行为:

> npm run build
> chat_gpt_oicq@1.0.0 build
> node build.js
patch...
builded app.js..
> pkg@5.8.0
unpatch...
> Warning Cannot include directory %1 into executable.
  The directory must be distributed with executable as %2.
  %1: node_modules\puppeteer\.local-chromium
  %2: path-to-executable/puppeteer
> Warning Cannot include directory %1 into executable.
  The directory must be distributed with executable as %2.
  %1: node_modules\puppeteer\.local-chromium
  %2: path-to-executable/puppeteer
> Warning Failed to make bytecode node18-x64 for file C:\snapshot\chat_gpt_oicq\node_modules\chalk\source\index.js
> Warning Failed to make bytecode node18-x64 for file C:\snapshot\chat_gpt_oicq\node_modules\inquirer\lib\inquirer.js
> Warning Failed to make bytecode node18-x64 for file C:\snapshot\chat_gpt_oicq\node_modules\chalk\source\utilities.js

help help help 百度谷歌还是不会,只能玩问了, help help help

easydu2002 commented 1 year ago

是卡住了吗还是,从提供的日志来看正常呢

upane commented 1 year ago

啊这,没问题了 看了下build目录确实生成文件了,是我太纠结控制台这个文字了。。。