Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

bug: yarn install succeeds, but throws errors on M1 Mac #512

Open
SgtPooki opened this issue Oct 5, 2022 · 2 comments
Open

bug: yarn install succeeds, but throws errors on M1 Mac #512

SgtPooki opened this issue Oct 5, 2022 · 2 comments

Comments

@SgtPooki
Copy link
Collaborator

SgtPooki commented Oct 5, 2022

╰─ ✔ ❯ gh-issue-info
ProductName:	macOS
ProductVersion:	12.6
BuildVersion:	21G115
Arch: arm64
NodeJS: v16.17.1
npm: 8.15.0
yarn: 1.22.19
warning Error running install script for optional dependency: "/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/electron-eval/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/electron-eval/node_modules/electron
Output:
Downloading electron-v1.8.8-darwin-arm64.zip
[>                                            ] 0.0% (0 B/s)
�[1000D�[0K�[1A�[1000D�[0K�[1A�[1000D�[0KDownloading electron-v1.8.8-darwin-arm64.zip
Error: GET https://github.com/electron/electron/releases/download/v1.8.8/electron-v1.8.8-darwin-arm64.zip returned 404
/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/electron-eval/node_modules/electron/install.js:47
  throw err
  ^

Error: Failed to find Electron v1.8.8 for darwin-arm64 at https://github.com/electron/electron/releases/download/v1.8.8/electron-v1.8.8-darwin-arm64.zip
    at Request.<anonymous> (/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/nugget/index.js:197:61)
    at Request.emit (node:events:513:28)
    at Request.onRequestResponse (/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (node:events:513:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:674:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at TLSSocket.socketOnData (node:_http_client:521:22)
    at TLSSocket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)"
info This module is OPTIONAL, you can safely ignore this error
warning Error running install script for optional dependency: "/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/wrtc: Command failed.
Exit code: 1
Command: node scripts/download-prebuilt.js
Arguments: 
Directory: /Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/wrtc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.13.0
node-pre-gyp info using node@16.17.1 | darwin | arm64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for \"/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/wrtc/build/Release/wrtc.node\" (not found)
node-pre-gyp http GET https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
node-pre-gyp http 404 https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
node-pre-gyp ERR! install error 
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/node-pre-gyp/lib/install.js:149:27)
node-pre-gyp ERR! stack     at Request.emit (node:events:525:35)
node-pre-gyp ERR! stack     at Request.onRequestResponse (/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/request/request.js:1059:10)
node-pre-gyp ERR! stack     at ClientRequest.emit (node:events:513:28)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:674:27)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (node:_http_client:521:22)
node-pre-gyp ERR! stack     at TLSSocket.emit (node:events:513:28)
node-pre-gyp ERR! stack     at addChunk (node:internal/streams/readable:315:12)
node-pre-gyp ERR! stack     at readableAddChunk (node:internal/streams/readable:289:9)
node-pre-gyp ERR! System Darwin 21.6.0
node-pre-gyp ERR! command \"/Users/sgtpooki/.asdf/installs/nodejs/16.17.1/bin/node\" \"/Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/wrtc/node_modules/.bin/node-pre-gyp\" \"install\"
node-pre-gyp ERR! cwd /Users/sgtpooki/code/work/protocol.ai/ipfs-examples/js-ipfs-examples/node_modules/wrtc
node-pre-gyp ERR! node -v v16.17.1
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok 
404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz"

yarn-install-log.txt

@SgtPooki SgtPooki changed the title bug: yarn install fails on M1 Mac bug: yarn install succeeds, but throws errors on M1 Mac Oct 5, 2022
@SgtPooki
Copy link
Collaborator Author

SgtPooki commented Oct 6, 2022

Note that this error is not seen when installing via npm install

@CocDap
Copy link

CocDap commented Nov 10, 2022

Same issue with yarn install on M1 chip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants