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 i -S wrtc —> node-pre-gyp error #749

Closed
nichoth opened this issue Mar 27, 2023 · 4 comments
Closed

npm i -S wrtc —> node-pre-gyp error #749

nichoth opened this issue Mar 27, 2023 · 4 comments

Comments

@nichoth
Copy link

nichoth commented Mar 27, 2023

Try to install this module, throws an error. Node version: v16.16.0

% npm i -S wrtc
npm ERR! code 1
npm ERR! path /Users/nick/code/worm-server/node_modules/wrtc
npm ERR! command failed
npm ERR! command sh -c node scripts/download-prebuilt.js
npm ERR! /bin/sh: node-pre-gyp: command not found

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nick/.npm/_logs/2023-03-27T17_11_48_394Z-debug-0.log
@nichoth
Copy link
Author

nichoth commented Mar 28, 2023

Installed node-pre-gyp as a global module:

% npm i -g @mapbox/node-pre-gyp

Then ran npm i -S webtorrent-hybrid again:

% npm i -S webtorrent-hybrid   
npm ERR! code 1
npm ERR! path /Users/nick/code/worm-server/node_modules/wrtc
npm ERR! command failed
npm ERR! command sh -c node scripts/download-prebuilt.js
npm ERR! response status 404 Not Found on https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
npm ERR! node-pre-gyp info using node@19.8.1 | darwin | arm64
npm ERR! node-pre-gyp info check checked for "/Users/nick/code/worm-server/node_modules/wrtc/build/Release/wrtc.node" (not found)
npm ERR! node-pre-gyp http GET https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz 
npm ERR! node-pre-gyp ERR! install error 
npm ERR! node-pre-gyp ERR! stack Error: response status 404 Not Found on https://node-webrtc.s3.amazonaws.com/wrtc/v0.4.7/Release/darwin-arm64.tar.gz
npm ERR! node-pre-gyp ERR! stack     at /Users/nick/.nvm/versions/node/v19.8.1/lib/node_modules/@mapbox/node-pre-gyp/lib/install.js:67:15
npm ERR! node-pre-gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! node-pre-gyp ERR! System Darwin 21.6.0
npm ERR! node-pre-gyp ERR! command "/Users/nick/.nvm/versions/node/v19.8.1/bin/node" "/Users/nick/.nvm/versions/node/v19.8.1/bin/node-pre-gyp" "install"
npm ERR! node-pre-gyp ERR! cwd /Users/nick/code/worm-server/node_modules/wrtc
npm ERR! node-pre-gyp ERR! node -v v19.8.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nick/.npm/_logs/2023-03-28T00_28_53_105Z-debug-0.log

I'm guessing this is related to the mac M1 hardware I'm using.

@nichoth nichoth changed the title npm i -S wrtc -- error npm i -S wrtcnode-pre-gyp error Mar 28, 2023
@nichoth
Copy link
Author

nichoth commented Mar 28, 2023

see #729

@jaqarrick
Copy link

jaqarrick commented May 2, 2023

+1
@nichoth
I got around this by switching to node v14 😕

@rhyanzlmd
Copy link

rhyanzlmd commented Aug 12, 2023

just install node-pre-gyp in global env

sudo npm install -g node-pre-gyp

image

@nichoth nichoth changed the title npm i -S wrtcnode-pre-gyp error npm i -S wrtc —> node-pre-gyp error Aug 12, 2023
@duvallj duvallj closed this as completed May 2, 2024
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

4 participants