LinusU / node-appdmg

💾 Generate your app dmgs
MIT License
1.67k stars 151 forks source link

Fails on M2 systems ,MacOs version: 13.5.1 ventura #232

Closed xdli-3379 closed 10 months ago

xdli-3379 commented 10 months ago

sudo npm install -g appdmg

npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/appdmg/node_modules/fs-xattr npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.3.1 npm ERR! gyp info using node@18.17.1 | darwin | arm64 npm ERR! gyp info find Python using Python version 3.11.4 found at "/opt/homebrew/opt/python@3.11/bin/python3.11"

npm ERR! gyp http GET https://registry.npmjs.org/dist/v18.17.1/node-v18.17.1-headers.tar.gz

npm ERR! gyp WARN install got an error, rolling back install npm ERR! gyp ERR! configure error

npm ERR! gyp ERR! stack FetchError: request to https://registry.npmjs.org/dist/v18.17.1/node-v18.17.1-headers.tar.gz failed, reason: connect ETIMEDOUT 104.16.3.35:443

npm ERR! gyp ERR! stack at ClientRequest. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/node_modules/minipass-fetch/lib/index.js:130:14) npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:514:28) npm ERR! gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:501:9) npm ERR! gyp ERR! stack at TLSSocket.emit (node:events:526:35) npm ERR! gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:151:8) npm ERR! gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:116:3) npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

xdli-3379 commented 10 months ago

is ok : change node version to 14.*

xdli-3379 commented 10 months ago

is ok : change node version to 14.*