5

I've tried to install web3 with node.js by doing npm install web3 --save, but when I check the node_modules/ folder, there's no dist folder and its web3.min.js file anywhere. Any ideas on how or why?

0xInfection
  • 2,676
  • 1
  • 19
  • 34
  • See if this helps - (https://stackoverflow.com/questions/5926672/where-does-npm-install-packages). There won't be a dist folder. – Ujjwal Vaish Feb 21 '19 at 20:18

2 Answers2

1

Why do you need web3.min.js file? The package's entry point is src/index.js, to use it in you project just use:

import Web3 from 'web3';
-1

Try this:

npm install web3@0.20.6 --save

I hope it is works.

emrcftci
  • 3,355
  • 3
  • 21
  • 35