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"
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)