8

How to check installed web3 version with command line terminal?

  • 1
    This message has nothing to do with web3, it's telling you to upgrade npm itself. – goodvibration Jun 12 '18 at 6:03
  • the message suggests to update your npm no web3 – mirg Jun 12 '18 at 6:03
13

From a command line: npm ls web3 or npm list web3.

By the way, this message has nothing to do with web3, it's telling you to upgrade npm itself.

  • thanx @goodvibration my problem solved upgrading npm – Ishwar Chandra Aug 3 '18 at 18:53
8

npm install web3 installs web3.js, which has a version command documented here: https://github.com/ethereum/wiki/wiki/JavaScript-API#web3versionapi

var version = web3.version.api;
console.log(version); // "0.2.0"
  • 2
    Or just npm ls web3 – goodvibration Jun 12 '18 at 6:03
  • shows different version than package.json – Eddie Feb 28 at 22:41
0

You can check your node module versions using:

npm view <module> version

So just type on your terminal:

npm view web3 version

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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