wechaty / getting-started

A Starter Project Template for Wechaty works out-of-the-box
https://gitpod.io/#https://github.com/wechaty/wechaty-getting-started
Apache License 2.0
772 stars 342 forks source link

npm install err #303

Open maotaoxiansheng opened 5 months ago

maotaoxiansheng commented 5 months ago

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/joi@16.1.8: Switch to 'npm install joi' npm WARN deprecated sinon@13.0.2: 16.1.1 npm WARN deprecated puppeteer@13.7.0: < 21.5.0 is no longer supported npm ERR! code 1 npm ERR! path /data/server/getting-started-main/node_modules/node-jq npm ERR! command failed npm ERR! command sh -c npm run install-binary npm ERR! > node-jq@1.12.0 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-linux64 npm ERR! GotError [RequestError]: connect ETIMEDOUT 20.205.243.166:443 npm ERR! at ClientRequest. (/data/server/getting-started-main/node_modules/got/index.js:182:22) npm ERR! at Object.onceWrapper (node:events:633:26) npm ERR! at ClientRequest.emit (node:events:518:28) npm ERR! at TLSSocket.socketErrorListener (node:_http_client:495:9) npm ERR! at TLSSocket.emit (node:events:518:28) npm ERR! at emitErrorNT (node:internal/streams/destroy:169:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:128:3) npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82: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-linux64', npm ERR! protocol: 'https:', npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64' npm ERR! }

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-01-26T01_56_13_946Z-debug-0.log

xiaobujun commented 2 months ago

类似的报错,说报错的地址访问超时,但是我实际访问正常,还有不是很懂请求的这个IP是什么,这个是无法访问的 npm WARN deprecated @types/dotenv@8.2.0: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed. npm WARN deprecated phin@2.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated @hapi/pinpoint@1.0.2: Moved to 'npm install @sideway/pinpoint' npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated @hapi/formula@1.2.0: Moved to 'npm install @sideway/formula' npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' npm WARN deprecated cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead. npm WARN deprecated raven@2.6.4: Please upgrade to @sentry/node. See the migration guide https://bit.ly/3ybOlo7 npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/joi@16.1.8: Switch to 'npm install joi' npm WARN deprecated sinon@13.0.2: 16.1.1 npm ERR! code 1 npm ERR! path G:\Happy\wechaty\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! > node-jq@1.12.0 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 185.199.111.133:443 npm ERR! at ClientRequest. (G:\Happy\wechaty\node_modules\got\index.js:182:22) npm ERR! at Object.onceWrapper (node:events:632:26) npm ERR! at ClientRequest.emit (node:events:517:28) npm ERR! at TLSSocket.socketErrorListener (node:_http_client:501:9) npm ERR! at TLSSocket.emit (node:events:517:28) npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3) npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { npm ERR! code: 'ETIMEDOUT', npm ERR! host: 'objects.githubusercontent.com', npm ERR! hostname: 'objects.githubusercontent.com', npm ERR! method: 'GET', npm ERR! path: '/github-production-release-asset-2e65be/5101141/6387d980-de1f-11e8-9108-d55ca3d2be22?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240421%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240421T062954Z&X-Amz-Expires=300&X-Amz-Signature=af7572510dd2013781d1303804a06e0717b5907dfa81862e4c5dcfeaad2374e0&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=5101141&response-content-disposition=attachment%3B%20filename%3Djq-win64.exe&response-content-type=application%2Foctet-stream', npm ERR! protocol: 'https:', npm ERR! url: 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/5101141/6387d980-de1f-11e8-9108-d55ca3d2be22?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240421%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240421T062954Z&X-Amz-Expires=300&X-Amz-Signature=af7572510dd2013781d1303804a06e0717b5907dfa81862e4c5dcfeaad2374e0&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=5101141&response-content-disposition=attachment%3B%20filename%3Djq-win64.exe&response-content-type=application%2Foctet-stream' npm ERR! }

npm ERR! A complete log of this run can be found in: C:\Users\小布菌\AppData\Local\npm-cache_logs\2024-04-21T06_27_20_479Z-debug-0.log

xiaobujun commented 2 months ago

npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142 npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/joi@16.1.8: Switch to 'npm install joi' npm WARN deprecated sinon@13.0.2: 16.1.1 npm WARN deprecated puppeteer@13.7.0: < 21.5.0 is no longer supported npm ERR! code 1 npm ERR! path /data/server/getting-started-main/node_modules/node-jq npm ERR! command failed npm ERR! command sh -c npm run install-binary npm ERR! > node-jq@1.12.0 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-linux64 npm ERR! GotError [RequestError]: connect ETIMEDOUT 20.205.243.166:443 npm ERR! at ClientRequest. (/data/server/getting-started-main/node_modules/got/index.js:182:22) npm ERR! at Object.onceWrapper (node:events:633:26) npm ERR! at ClientRequest.emit (node:events:518:28) npm ERR! at TLSSocket.socketErrorListener (node:_http_client:495:9) npm ERR! at TLSSocket.emit (node:events:518:28) npm ERR! at emitErrorNT (node:internal/streams/destroy:169:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:128:3) npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82: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-linux64', npm ERR! protocol: 'https:', npm ERR! url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64' npm ERR! }

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-01-26T01_56_13_946Z-debug-0.log

在我今天的多次尝试下通过更换成淘宝镜像解决npm install报错问题