2019独角兽企业重金招聘Python工程师标准>>>
1、源码放在$GOPATH /src下编译、安装,否则会报安装错误,用go get -u 下载更靠谱
2、cd /home/hnan/go/src/github.com/NebulousLabs/Sia
make dependencies
make all
在/home/hnan/go/bin目录下安装了siad和siac
3、go get -u -v github.com/NebulousLabs/Sia-UI
4、需要更新npm版本,参考 https://blog.csdn.net/qq_23158083/article/details/54587161
sudo apt-get autoremove --purge nodejs
sudo apt-get autoremove --purge npm
到 https://nodejs.org/en/download/ 下载最新版本 node-v8.11.2-linux-x64
解压后 mv node-v8.11.2-linux-x64 /opt
sudo rm -rf /usr/local/bin/node
sudo rm -rf /usr/local/bin/npm
sudo ln -s /opt/node-v8.11.2-linux-x64/bin/node /usr/local/bin/node
sudo ln -s /opt/node-v8.11.2-linux-x64/bin/npm /usr/local/bin/npm
node -v //v8.11.2
npm -v //5.6.0
5、electron 安装报错,参考 https://cnodejs.org/topic/590df016cfb837012a59b44f
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ npm install -g electron
export ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
6、cd /home/hnan/go/src/github.com/NebulousLabs/Sia-UI
npm install
npm start