運(yùn)行環(huán)境:ubuntu 16.04 64位系統(tǒng)
一 安裝運(yùn)行環(huán)境
安裝nvm硼身,nodejs的包管理工具
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
nvm install v6
nvm use v6
二 下載源碼
git clone https://github.com/bitshares/bitshares-ui
cd bitshares-ui
三 為網(wǎng)頁錢包工程安裝依賴的nodejs包(根據(jù)package.json)
npm install
四 安裝完成后枢冤,運(yùn)行
npm start
image.png
image.png
image.png
五 訪問
本機(jī)瀏覽器輸入 http://127.0.0.1:8080
外部機(jī)器瀏覽器輸入http://網(wǎng)頁錢包運(yùn)行主機(jī)的IP:8080
就可以訪問了
image.png
四 遇到的問題
1 npm install時(shí)讶迁,安裝eletron巍糯,卡在 node install.js ,
- 可以運(yùn)行 npm config set registry https://registry.npm.taobao.org
- 然后 編輯 ~/.npmrc 加入下面內(nèi)容
registry=https://registry.npm.taobao.org
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
phantomjs_cdnurl=http://npm.taobao.org/mirrors/phantomjs
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
2 npm start時(shí)客扎,發(fā)現(xiàn)building modules沒完成徙鱼,就退出了针姿。且使用lsof -i:8080, 沒看到node進(jìn)程
=》內(nèi)存不足厌衙,請?jiān)黾觾?nèi)存 or 增加swap分區(qū)大小