1. 拉取docker ubuntu镜像, 并降级apt-get

    apt-get update
  2. 装置Node.js

    apt-get install nodejsapt-get install npm
  3. 降级Node.js至最新

    npm install n -gn stablehash -r  # reset the location hashnode --version
  4. 装置Truffle

    npm install -g truffle
  5. 查看Truffle版本

    truffle version