Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Windows下安装@chatie/tsconfig时报错 #44

Open
atorber opened this issue Jan 25, 2024 · 4 comments
Open

在Windows下安装@chatie/tsconfig时报错 #44

atorber opened this issue Jan 25, 2024 · 4 comments

Comments

@atorber
Copy link

atorber commented Jan 25, 2024

4.5.3一直到最新版本均有此问题,导致整个项目npm i 失败

npm WARN deprecated [email protected]: 16.1.1
npm ERR! code 1
npm ERR! path C:\Users\Administrator\Documents\GitHub\chatflow\node_modules\node-jq
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c npm run install-binary
npm ERR! > [email protected] install-binary
npm ERR! > node scripts/install-binary.js
npm ERR!
npm ERR! Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe
npm ERR! GotError [RequestError]: connect ETIMEDOUT 20.205.243.166:443
npm ERR! at ClientRequest. (C:\Users\Administrator\Documents\GitHub\chatflow\node_modules\got\index.js:182:22)
npm ERR! at Object.onceWrapper (node:events:642:26)
npm ERR! at ClientRequest.emit (node:events:527:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:454:9)
npm ERR! at TLSSocket.emit (node:events:527:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ETIMEDOUT',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-win64.exe',
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2024-01-25T18_49_45_701Z-debug-0.log

@huan
Copy link
Member

huan commented Jan 26, 2024

I think it’s related to your network issue:

(node:internal/process/task_queues:83:21) {
npm ERR! code: 'ETIMEDOUT',
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/stedolan/jq/releases/download/jq-1.6/jq-win64.exe',

can you try it again in a windows server that can visit internet correctly?

@atorber
Copy link
Author

atorber commented Jan 26, 2024

我怀疑过是网络问题,所以在两台Windows电脑上测试过,一台是本地机器,一台是服务器,两台电脑均可以联网并且可以访问国外网络,甚至frida包是可以正常安装的

@atorber
Copy link
Author

atorber commented Jan 26, 2024

我怀疑过是网络问题,所以在两台Windows电脑上测试过,一台是本地机器,一台是服务器,两台电脑均可以联网并且可以访问国外网络,甚至frida包是可以正常安装的

另外,Linux系统下不存在这个问题

@atorber
Copy link
Author

atorber commented Jan 26, 2024

Following your suggestion, I tried to ping github.com but didn't get a response, which indeed seems like a network issue. However, I can access GitHub through a browser. Also, setting the proxy with set https_proxy=http://127.0.0.1:7890 didn't resolve the issue. Is it possible for us not to rely on downloading node-jq from GitHub, considering that there's a certain likelihood of encountering this issue with the network in China? Perhaps we could remove node-jq or switch to a domestic source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants