oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.55k stars 2.71k forks source link

Cant install ethersjs #438

Closed eugenioclrc closed 2 years ago

eugenioclrc commented 2 years ago

I have try to install ethers but its not working;

bun add ethers

Ends up in a frozen state.

Pruxis commented 2 years ago

It get's stuck on @babel/plugin-transform-unicode-escapes [1728/1731]

Pruxis commented 2 years ago

@eugenioclrc As a workaround install the babel plugin separately and then your installation should work. However, I'm unsure if this will have implications on any of the functionality, although I would doubt so.

bun add @babel/plugin-transform-unicode-escapes
bun add ethers
FinnRG commented 2 years ago

@eugenioclrc I'm unable to reproduce this issue. Are you using the latest version (v0.1.2)? If not, please upgrade using bun upgrade.

eugenioclrc commented 2 years ago

i have just upgrade it, how ever, im still having the same issue; Captura de pantalla de 2022-07-08 11-52-21

FinnRG commented 2 years ago

What is your OS? And please create a verbose log (bun add ethers --verbose).

eugenioclrc commented 2 years ago

Ubuntu

El vie, 8 de jul. de 2022 11:55, Finn R. Gärtner @.***> escribió:

What is your OS?

— Reply to this email directly, view it on GitHub https://github.com/Jarred-Sumner/bun/issues/438#issuecomment-1179080902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRFCQFCB3BAOBUCFSVA63VTA6N3ANCNFSM53A3XJLQ . You are receiving this because you were mentioned.Message ID: @.***>

Pruxis commented 2 years ago

@FinnRG I can also no longer reproduce after upgrading (was on 0.1.1) at time of testing.

FinnRG commented 2 years ago

i have just upgrade it, how ever, im still having the same issue; Captura de pantalla de 2022-07-08 11-52-21

@eugenioclrc Could you please give us your kernel version? (uname -r). Also please provide a verbose log (bun add ethers --verbose > log.txt)

Karl-EdwardFPJeanMehu commented 2 years ago

Bun does indeed hang when installing ethersJS. I can confirm @Pruxis 's solution works.

ttdatt commented 2 years ago

I had same problem with firebase-admin, tried to install it, but end up with install 5 dependencies to make it work.

Platform: MacOS 12.4 Apple M1 logs.txt

This is my package.json.


  "name": "node-fcm",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "@firebase/auth-interop-types": "^0.1.6",
    "@panva/asn1.js": "^1.0.0",
    "@protobufjs/codegen": "^2.0.4",
    "ansi-regex": "^6.0.1",
    "color-convert": "^2.0.1",
    "firebase-admin": "^11.0.0"
  }
}
KKatowice commented 2 years ago

For those who got this problem while installing ethers error: Unsupported dependency type git for "git+https://github.com/ethereumjs/ethereumjs-abi.git" image On discord the answer was " git dependencies aren't supported yet " . if anyone have any workaround to install ethers would be nice, ty.

malonehedges commented 2 years ago

i've been able to install ethers. not sure when it changed for me but i wasn't able to and have been able to recently. now i am just seeing other http issues using a RPC provider with ethers

Jarred-Sumner commented 2 years ago

The original issue was a missing error message for git dependencies. That issue still exists, but is tracked separately

The HTTP client issues should be fixed as of Bun v0.1.12