拉取docker ubuntu镜像, 并降级apt-get
apt-get update
装置Node.js
apt-get install nodejsapt-get install npm
降级Node.js至最新
npm install n -gn stablehash -r # reset the location hashnode --version
装置Truffle
npm install -g truffle
查看Truffle版本
truffle version
拉取docker ubuntu镜像, 并降级apt-get
apt-get update
装置Node.js
apt-get install nodejsapt-get install npm
降级Node.js至最新
npm install n -gn stablehash -r # reset the location hashnode --version
装置Truffle
npm install -g truffle
查看Truffle版本
truffle version