汇总

npm

truffle

geth

nodejs

ganache-cli

web3

本机

root@ubuntu:/home/cl/Desktop# uname -a

Linux ubuntu 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

npm

##安装

sudo    apt-get    install    npm

##查看

root@ubuntu:/home/cl/Desktop/geth# npm -v

6.14.4

truffle

#安装

npm install -g truffle

#查看

root@ubuntu:/home/cl/Desktop# truffle version

Truffle v5.4.32 (core: 5.4.32)

nodejs

#安装

sudo apt install nodejs

#查看

root@ubuntu:/home/cl/Desktop# nodejs --version

v10.19.0

geth

#安装

##添加软件源

sudo apt-get install software-properties-common

sudo add-apt-repository -y ppa:ethereum/ethereum

##更新后安装

sudo apt-get update

sudo apt-get install ethereum

#查看

root@ubuntu:/home/cl/Desktop# geth version

Geth

Version: 1.9.12-stable

Git Commit: 27356db60e570e51169f6c763ff14eb41abc9e56

Git Commit Date: 20210721

Architecture: amd64

Protocol Versions: [65 64 63]

Go Version: go1.13.9

Operating System: linux

GOPATH=

GOROOT=/usr/local/go

web3