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

npm install err #303

Open
maotaoxiansheng opened this issue Jan 26, 2024 · 2 comments
Open

npm install err #303

maotaoxiansheng opened this issue Jan 26, 2024 · 2 comments

Comments

@maotaoxiansheng
Copy link

npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: 16.1.1
npm WARN deprecated [email protected]: < 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! > [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-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
Copy link

xiaobujun commented Apr 21, 2024

类似的报错,说报错的地址访问超时,但是我实际访问正常,还有不是很懂请求的这个IP是什么,这个是无法访问的
npm WARN deprecated @types/[email protected]: This is a stub types definition. dotenv provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/pinpoint'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/formula'
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
npm WARN deprecated [email protected]: Please upgrade to @sentry/node. See the migration guide https://bit.ly/3ybOlo7
npm WARN deprecated [email protected]: 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 [email protected]: 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 [email protected]: 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 [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: 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/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: 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! > [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 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
Copy link

npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142 npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi' npm WARN deprecated [email protected]: 16.1.1 npm WARN deprecated [email protected]: < 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! > [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-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报错问题

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