Ethereum Web3.js returns "Cannot find module 'web3-requestManager'"

I solved it by removing node_modules folder, running npm install again and installing web3js manually in addition to package.json listing:

Add dependency to package.json

"web3": "^1.0.0-beta.31"

Rebuild modules

rm -rf node_modules
npm install

Install web3 manually

npm install [email protected]

The problem comes from using a beta version of web3 its not stable at the moment and currently is under heavy development you have one of two options,

  • either use a stable version 0.23 i think or something like that

  • or manually install all the needed dependencies i don't recommend this solution for a stable dapp since things are currently really unstable


npm install ethereum/web3.js

should solve your problem