安裝Truffle
NodeJs安裝
https://nodejs.org/en/download/
配置npm源爲國內源(可選,可加快下載速度):
sudo npm config set registry http://registry.npm.taobao.org
安裝Truffle
sudo npm install -g truffle
安裝以太坊客戶端
部署到私鏈上,Truffle官方推薦使用以下兩種客戶端:
● Ganache
● truffle develop
https://www.trufflesuite.com/ganache下載或github編譯
https://github.com/trufflesuite/ganache