3

I am following the below tutorial to create implement blockchain using web3.

https://medium.com/coinmonks/interacting-with-ethereum-smart-contracts-through-web3-js-e0efad17977

When I am using npm install ethereum/web3.js --save web3/dist is not getting created at all and is unable to find ./node_modules/web3/dist/web3.min.js.

On using npm install web3 --save web3/dist is getting created but web3.min.js is missing.

As per the tutorial and all other tutorials, need this in my script.

I need help!!!

1

2 Answers 2

1

This solved the issue:

npm install ethereum/web3.js#develop --save --verbose

0

try using this link. It is the cdn

<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script>

1
  • https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js OR https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js worked for me
    – qpaycm
    Jun 16, 2022 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.