cosin2077 / chaty

one line code, satisfied all your ChatGPT imagination✨✨✨
448 stars 42 forks source link

执行chaty命令报错413 #23

Closed yuyichen closed 1 year ago

yuyichen commented 1 year ago

半个月前自己在linux上安装运行成功过,但是今天在window 系统全局安装了ichaty,但是执行chaty命令会报错

chaty --help
✖ check chaty version error: Request failed with status code 413
✖ check chaty version timeout

ichaty 安装版本 0.1.21,检查了本地相关配置

.npmrc文件如下

registry=https://registry.npmmirror.com/

ichaty .env文件内容如下

WEB_PORT=9522

NODE_PORT=9523

看了下源码有检查版本的代码,是不是请求的https://registry.npmmirror.com/ichaty 这个文件太大导致的?

yuyichen commented 1 year ago

查了下相关资料,建议改成https://registry.npmmirror.com/ichaty/latest去查询最新的版本号

yuyichen commented 1 year ago

已提pr,https://github.com/cosin2077/chaty/pull/24