区块链学习中遇到的bug及解决方法(自己记录以备以后需要)

1、eth-lightwallet

git获取源码访问.\eth-lightwallet\example\webwallet.html  页面操作生成账户。

F12 看到页面报错 :async.js 无法找到。

解决:修改webwallet.html  页面 async.js 的应路径,去node-modules 里面找到async模块,没有则 npm install async安装

把错误的引用路径改回来就行。我的是:

<script src="../node_modules/async/dist/async.js" type="text/javascript"></script>

2、truffle 安装问题

BUG1:

Error: EACCES: permission denied, open '/root/.config/truffle/config.json'
You don't have access to this file.

解决:用roo权限安装

root@ubuntu:~# sudo su -c "sudo npm i -g --unsafe-perm=true --allow-root truffle"

root@ubuntu:~# sudo su -c "sudo npm i -g --unsafe-perm=true --allow-root truffle"
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has cha
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值