一般truffle安装的依赖环境有:Nodejs,git ,python,ubuntu下自带python
更新apt-get:
apt-get update
安装git:
apt-get install git
git config –global user.name “YourName”
git config –global user.email”email@example.com”
安装nodeJS之前,如果没有安装g++及 libssl-dev,则先要安装好
sudo apt-get install g++
sudo apt-get install libssl-dev
下载安装nodeJS
可以直接通过apt-get安装
apt-get install nodejs
也可以直接从官网下载