getting-started icon indicating copy to clipboard operation
getting-started copied to clipboard

npm install error

Open hideInEye opened this issue 5 months ago • 0 comments

Important:Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
rm -rf package-lock.json
rm -rf node_modules
npm install
  1. Please search in FAQ List first, and make sure your problem has not been solved before.

  2. Please search in the issue first, and make sure your problem had not been reported before

1. Versions

  • What is your wechaty version? Answer: v1.18.12

  • Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...) Answer:

  • What is your wechaty-puppet-XXX(padchat/puppeteer/) version? Answer:

  • What is your node version? (run node --version) Answer: v18.20.5

  • What os are you using Answer: macos arm64

2. Describe the bug

Give a clear and concise description of what the bug is.

When I clone the repository and execute "make install", an error will be reported that a certain package will install the amd version, but my computer is the macos arm version

3. To Reproduce

This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

Steps to reproduce the behavior:

  1. git clone xxx
  2. make install

4. Expected behavior

Give a clear and concise description of what you expected to happen. Since normal installation

5. Actual behavior

If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.

Image

6638 verbose stack Error: command failed 6638 verbose stack at promiseSpawn (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) 6638 verbose stack at spawnWithShell (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) 6638 verbose stack at promiseSpawn (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) 6638 verbose stack at runScriptPkg (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:77:13) 6638 verbose stack at runScript (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:9:12) 6638 verbose stack at /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:329:17 6638 verbose stack at run (/usr/local/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:67:22) 6638 verbose stack at /usr/local/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:84:9 6638 verbose stack at new Promise () 6638 verbose stack at callLimit (/usr/local/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:35:69) 6639 verbose pkgid [email protected] 6640 error code 1 6641 error path /Users/juvenile/Documents/github/getting-started/node_modules/node-jq 6642 error command failed 6643 error command sh -c npm run install-binary 6644 error > [email protected] install-binary 6644 error > node scripts/install-binary.js 6644 error 6644 error Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 6645 error GotError [RequestError]: connect ETIMEDOUT 20.205.243.166:443 6645 error at ClientRequest. (/Users/juvenile/Documents/github/getting-started/node_modules/got/index.js:182:22) 6645 error at Object.onceWrapper (node:events:632:26) 6645 error at ClientRequest.emit (node:events:517:28) 6645 error at TLSSocket.socketErrorListener (node:_http_client:501:9) 6645 error at TLSSocket.emit (node:events:517:28) 6645 error at emitErrorNT (node:internal/streams/destroy:151:8) 6645 error at emitErrorCloseNT (node:internal/streams/destroy:116:3) 6645 error at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { 6645 error code: 'ETIMEDOUT', 6645 error host: 'github.com', 6645 error hostname: 'github.com', 6645 error method: 'GET', 6645 error path: '/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64', 6645 error protocol: 'https:', 6645 error url: 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64' 6645 error } 6646 silly unfinished npm timer reify 1750908543786 6647 silly unfinished npm timer reify:build 1750908628286 6648 silly unfinished npm timer build 1750908628287 6649 silly unfinished npm timer build:deps 1750908628287 6650 silly unfinished npm timer build:run:postinstall 1750908637720 6651 silly unfinished npm timer build:run:postinstall:node_modules/node-jq 1750908637732 6652 verbose cwd /Users/juvenile/Documents/github/getting-started 6653 verbose os Darwin 21.6.0 6654 verbose node v18.20.5 6655 verbose npm v10.8.2 6656 verbose exit 1 6657 verbose code 1

6. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs
$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:

7. Additional context

Add any other context about the problem here.

[bug]

hideInEye avatar Jun 26 '25 03:06 hideInEye