You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It actually does not use wrong architecture, the ngrok npm package has Mac OS X version bundled and on postinstall it downloads version for different architectures. And that's when bun fails:
❯ bun node_modules/ngrok/postinstall.js
[0.07ms] ".env"
arch linuxx64 cdn https://bin.equinox.io url https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.zip
ngrok - downloading binary https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.zip
ngrok - downloading progress:
ngrok - error downloading from URL 121 | */
122 | class RequestError extends Error {
123 | constructor(message, error, self) {
124 | var _a, _b;
125 | super(message);
126 | Error.captureStackTrace(this, this.constructor);
^
RequestError: Attempted to assign to readonly property.
code: "ERR_GOT_REQUEST_ERROR"
at new RequestError (/home/radek/weareeight/Bundle-Builder/node_modules/got/dist/source/core/index.js:126:8)
at _beforeError (/home/radek/weareeight/Bundle-Builder/node_modules/got/dist/source/core/index.js:1214:20)
at /home/radek/weareeight/Bundle-Builder/node_modules/got/dist/source/core/index.js:952:12
at processTicksAndRejections (:1:2602)
What version of Bun is running?
1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b
What platform is your computer?
Linux 6.4.13-100.fc37.x86_64 x86_64 x86_64
What steps can reproduce the bug?
bun add -D ngrok
to install ngrokIt says
Mach-O
which is for Mac OS X, but I'm on Linux.Running that binary fails with
In comparison, when installing with npm:
What is the expected behavior?
Linux x86_64 version of the ngrok package should be installed into node_modules.
What do you see instead?
Mac OS X version of the package is installed.
Additional information
The text was updated successfully, but these errors were encountered: