Web3.js: BigNumber dependency

Created on 23 Jun 2017  路  33Comments  路  Source: ChainSafe/web3.js

The dependency listed here https://github.com/ethereum/web3.js/blob/develop/package.json#L11 points to a github repo that no longer exists. Until this dependency is resolved, I can no longer install and use this library

Most helpful comment

this should fix the issue, not sure if bignumber updates have broken anything on web3.js but it seems to work. I'm going to run more tests to be sure.

https://github.com/ethereum/web3.js/pull/905

All 33 comments

+1

Same here. Can't install web3

+1

Same problem we are facing.

How is 1.0 handling BigNumber (devdependency) 4.0.0? Can we backport the changes to fix this issue? Where does bn.js come into picture?

this should fix the issue, not sure if bignumber updates have broken anything on web3.js but it seems to work. I'm going to run more tests to be sure.

https://github.com/ethereum/web3.js/pull/905

Ironically, the top recommended comment to "Ethereum is impossible to get started" is use embark which has dep on web3 which doesn't install due to this 馃槀
https://www.reddit.com/r/ethereum/comments/6iorba/getting_started_on_ethereum_is_impossible_my/?st=j4aee9mk&sh=54e30401

hey, just came here to say I ran into the same issue. Is there a workaround until this patch is pushed?

@theporpoise one way is to change your package file to use the fixed version. I'm using this at the moment "web3": "https://github.com/shayanb/web3.js#develop" in package.json

thanks @shayanb !

I was trying to fix this after checking https://github.com/ethereum/web3.js/pull/439 but indeed the repo is not available anymore.

Modify package.json as below

{
  "dependencies": {
    "web3": "github:shayanb/web3.js#develop"
  }
}

Looks like PR #905 that was merged fixed the issue in the develop branch. However, since the situation requires a hotfix, there should be a fix made to the master branch and probably a new patch release, unless the team is planning on releasing v1.0 soon (since it appears to be fixed there)? Otherwise the published npm module is still broken and everyone depending on it through an npm installation can not use this.

Can someone please release the hotfix on npm?

Yep my issue is with npm as well.

Seems like marek did remove bignumber.js from his repo

Having issues with truffle ATM as well.

I merged @orlandoc01 PR and published 0.19.1, but i can't get the meteor version uploaded, something is broken on the meteor servers.
@adonley you still have the issues with the current develop?

@frozeman I'm good with develop in my package.json but I can't get truffle to grab it's deps correctly - I'll make the changes to truffle to use dev. Thanks for moving quickly on this.

thanks @orlandoc01 for the PR and thanks @frozeman for moving quickly!

Ok got 0.19.11 published on meteor as well.

@all i switched to the older bignum version with lookahead disabled, which is necessary for web3.js working in the geth console.
Can you please test the develop branch and tell me if its working for you guys?

web3 npm is working again.

ethereumjs-testrpc however has the same issue as described above.

Shouldn't the fix involve updating all bignumber.js deps to use the master repro here: https://github.com/MikeMcl/bignumber.js/ ?

sry guys for breaking that. Thanks to @iurimatias the repo is back up and even old versions of web3.js should be working

I wonder why not use the original repo? And why not use npm to manage the dependency?
I saw the only different code is this commit. I think we should create a PR to the original repo.

@xwartz because its a degradation of a feature, but necessary so it runs in the otto VM.

web3.js 1.0 will not have big number.js at all

@frozeman thanks for replying. I have seen bignumber.js as devDependency in web3.js 1.0. That's greate!

I am encountering this same issue again. Anyone else ?
npm version : 5.6.0 (lastest)

npm install web3 command stays stuck at [email protected].....

EDIT:
It was actually only an error with my network. I just changed network and everything worked.
It was working great for other packages but not this one. Could be good to know for something having the same issue.

I just rebuilt from version web3.js v1 beta 29 a few nights ago and so far so good.

Can the bignumber.js-nolookahead.git version be pinned to a particular git SHA?

When using bower and installing [email protected], this is still an issue:

bower web3#1.0.0-beta.34        cached https://github.com/ethereum/ethereum.js.git#1.0.0-beta.34
bower web3#1.0.0-beta.34      validate 1.0.0-beta.34 against https://github.com/ethereum/ethereum.js.git#1.0.0-beta.34
bower bn.js#>=4.11.6         ENOTFOUND Package bn.js not found

Fork the bignumber repo. Upload it to npm. Point the package.json from web3 to that repo. Republish web3 on npm. cloning from the development branch is not working.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

baxy picture baxy  路  3Comments

TinyWJL picture TinyWJL  路  3Comments

dhl picture dhl  路  3Comments

xpepermint picture xpepermint  路  3Comments

webersson picture webersson  路  3Comments