本项目是区块链开发实战丛书 区块链开发实战:以太坊关键技术与案例分析》 相关章节部分的相关代码
《区块链开发实战:以太坊关键技术与案例分析》
如果您觉得本丛书的代码对您有帮助请购买本正版图书,谢谢。
为了帮助读者更好的阅读本书,我们跟**最大的区块链技术社区区块链兄弟合作,在区块链兄弟上面开设了专栏。如果您在阅读本丛书的过程遇到的问题,可以通过以下连接提交问题
这是一个运行在以太坊上的去中心微博系统
本项目是区块链开发实战丛书 区块链开发实战:以太坊关键技术与案例分析》 相关章节部分的相关代码
《区块链开发实战:以太坊关键技术与案例分析》
如果您觉得本丛书的代码对您有帮助请购买本正版图书,谢谢。
为了帮助读者更好的阅读本书,我们跟**最大的区块链技术社区区块链兄弟合作,在区块链兄弟上面开设了专栏。如果您在阅读本丛书的过程遇到的问题,可以通过以下连接提交问题
when I execute
truffle build
the error occured.
/usr/local/lib/node_modules/truffle/build/cli.bundled.js:151368
var bufdir = Buffer.from(dir);
^
TypeError: this is not a typed array.
at Function.from (native)
at Object.files (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:151368:23)
at exports.fromCallback.exports.unique.exports.contain.module.exports (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:49951:7)
at getFiles (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:57676:9)
at Object.exports.fromCallback.exports.unique.exports.contain.module.exports.updated (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:57680:5)
at Function.exports.fromCallback.exports.unique.exports.contain.xfs.mkdir.exports.time.socket.once.socket.on.Object.keys.forEach.compile.necessary (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:93797:12)
at Object.exports.fromCallback.exports.unique.exports.contain.Contracts.compile (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:50028:15)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:95195:17
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:56218:26
at FSReqWrap.oncomplete (fs.js:82:15)
how can I solve it?
How to solve this error ?
duncanwang@ubuntu:~/work/eth-weibo-master$ truffle compile
Error: Cannot find module 'truffle-default-builder'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
at Module.require (internal/modules/cjs/loader.js:598:17)
at require (internal/modules/cjs/helpers.js:11:18)
at Object. (/home/duncanwang/work/eth-weibo-master/truffle.js:1:22)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
我对照着书里的weibo示例创建DApp,但是进行truffle build的时候,没有作用,我看了Truffle5的文档https://learnblockchain.cn/docs/truffle/advanced/build-processes.html,想要使用Truffle的默认构建器,但是好像不可用
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.