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

    apt-get update
  2. 安装Node.js

    apt-get install nodejs
    apt-get install npm
  3. 升级Node.js至最新

    npm install n -g
    n stable
    hash -r  # reset the location hash
    node --version
  4. 安装Truffle

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

    truffle version

人间喜剧观察员
1 声望1 粉丝