Ebookcoin has been updated to DDN Blockchain,please get it from https://github.com/ddnlink/ddn
亿书链已经全新升级为DDN区块链,所有全部关于亿书链的研发,请移步:https://github.com/ddnlink/ddn
《Node.js区块链开发2》将基于DDN区块链持续分享!
Ebookcoin has been updated to DDN Blockchain,please get it from https://github.com/ddnlink/ddn
Ebookcoin has been updated to DDN Blockchain,please get it from https://github.com/ddnlink/ddn
亿书链已经全新升级为DDN区块链,所有全部关于亿书链的研发,请移步:https://github.com/ddnlink/ddn
《Node.js区块链开发2》将基于DDN区块链持续分享!
請問下一代的ebookcoin 也會是用node.js 嗎?有可能用 go 嗎?前端用 react.js? 因為ember 實在不是很 popular
我的ed25519模块编译失败,请问您的编译环境是什么呀?
windows 7 下的环境 您试过没?
很奇怪,构建完成之后浏览器会提示错误:
TypeError: angular.module(...).info is not a function
[$injector:modulerr] Failed to instantiate module ebookcoinApp due to:
Error: [$injector:nomod] Module 'ebookcoinApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
由于angular不了解,所以只能看出来是ebookcoinApp没有加载?
真的很懵
在运行node app.js 后通过浏览器访问localhost:7000端口报angular is not defined 错误
对应wendor_app.js:1:1
生成的区块 reward都是0?
log 2016-10-28 10:38:05 Ebookcoin started: 0.0.0.0:7000
fatal 2016-10-28 10:38:05 Domain master { message: 'Module did not self-register.',
stack: 'Error: Module did not self-register.\n at Error (native)\n at Module.load (module.js:355:32)\n at Function.Module._load (module.js:310:12)\n at Module.require (module.js:365:17)\n at require (module.js:384:17)\n at bindings (/home/demontf/workspace/ebookcoin/node_modules/ed25519/node_modules/bindings/bindings.js:76:44)\n at Object. (/home/demontf/workspace/ebookcoin/node_modules/ed25519/index.js:1:99)\n at Module._compile (module.js:460:26)\n at Object.Module._extensions..js (module.js:478:10)\n at Module.load (module.js:355:32)' }
Linux version 3.13.0-24-generic (buildd@panlong) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014
亿书技术选型提到客户端采用electron框架,但在项目中没有看到客户端的代码,感谢
目前已经成功安装,请问我该如何使用呢,有操作手册么
本地用Node 4.6.2 运行node app.js -p 7000 -a 134.175.xx.xx
打算连接到服务器的ebook链
可以ping得到的ip地址,但是出现了连接失败情况
报错详情如下
fatal 2018-11-14 21:34:30 Domain master { message: 'listen EADDRNOTAVAIL 134.175.91.29:7000', stack: 'Error: listen EADDRNOTAVAIL 134.175.91.29:7000\n at Object.exports._errnoException (util.js:911:11)\n at exports._exceptionWithHostPort (util.js:934:20)\n at Server._listen2 (net.js:1235:19)\n at listen (net.js:1284:10)\n at net.js:1393:9\n at nextTickCallbackWith3Args (node.js:469:9)\n at process._tickDomainCallback (node.js:416:17)\n at Function.Module.runMain (module.js:443:11)\n at startup (node.js:139:18)\n at node.js:990:3' }
hi,您的工程让我学到了很多,但是在执行编译的时候遇到了困难,
16990 warn [email protected] No license field.
16991 verbose stack Error: [email protected] install: node-gyp rebuild
16991 verbose stack Exit status 1
16991 verbose stack at EventEmitter. (/usr/local/nodejs/node-v8.4.0-linux-x64/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
16991 verbose stack at emitTwo (events.js:125:13)
16991 verbose stack at EventEmitter.emit (events.js:213:7)
16991 verbose stack at ChildProcess. (/usr/local/nodejs/node-v8.4.0-linux-x64/lib/node_modules/npm/lib/utils/spawn.js:40:14)
16991 verbose stack at emitTwo (events.js:125:13)
16991 verbose stack at ChildProcess.emit (events.js:213:7)
16991 verbose stack at maybeClose (internal/child_process.js:927:16)
16991 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Running "browserify:release" (browserify) task
Error: Cannot find module '../../../../_is-buffer@1.1.6@is-buffer/index.js' from '/home/kuby/project/ebookcoin/ebookcoin/public/node_modules/_core-util-is@1.0.2@core-util-is/lib'
Warning: Error running grunt-browserify. Use --force to continue.
Aborted due to warnings.
kuby@kuby-virtual-machine:~/project/ebookcoin/ebookcoin/public$
如何赚取币来测试呢?
server.js
router.get('/', function (req, res) { if (privated.loaded) { res.render('wallet.html', {layout: false}); } else { res.render('loading.html'); } });
访问http:ip:port/ 好像没有执行到这里
如標題
您好,根据您的教程安装ebookcoin,浏览器访问7000端口报错,报错文件为vendor_app.js,
vendor_app.js.zip
系统环境:Mac os Sierra 10.12.6
node版本:v8.2.1
npm版本:5.3.0
在虚拟机ubuntu 14.05上也报同样错误,node版本 v0.12.14,npm版本v2.15.1
具体错误如下:
Uncaught TypeError: angular.module(...).info is not a function at vendor_app.js:19379 at Object.102 (vendor_app.js:19792) at s (vendor_app.js:1) at vendor_app.js:1 at Object.103../angular-resource (vendor_app.js:19795) at s (vendor_app.js:1) at vendor_app.js:1 at Object.7.../bower_components/angular-chart.js/dist/angular-chart.js (vendor_app.js:10526) at s (vendor_app.js:1) at vendor_app.js:1 vendor_app.js:28245 Uncaught Error: [$injector:modulerr] Failed to instantiate module ebookcoinApp due to: Error: [$injector:nomod] Module 'ebookcoinApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.2.32/$injector/nomod?p0=ebookcoinApp at http://localhost:7000/static/js/vendor_app.js:24416:12 at http://localhost:7000/static/js/vendor_app.js:26017:17 at ensure (http://localhost:7000/static/js/vendor_app.js:25941:38) at module (http://localhost:7000/static/js/vendor_app.js:26015:14) at http://localhost:7000/static/js/vendor_app.js:28217:22 at forEach (http://localhost:7000/static/js/vendor_app.js:24663:18) at loadModules (http://localhost:7000/static/js/vendor_app.js:28211:5) at createInjector (http://localhost:7000/static/js/vendor_app.js:28151:11) at doBootstrap (http://localhost:7000/static/js/vendor_app.js:25784:20) at bootstrap (http://localhost:7000/static/js/vendor_app.js:25799:12) http://errors.angularjs.org/1.2.32/$injector/modulerr?p0=ebookcoinApp&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'ebookcoinApp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.32%2F%24injector%2Fnomod%3Fp0%3DebookcoinApp%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A24416%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A26017%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A25941%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A26015%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A28217%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A24663%3A18)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A28211%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A28151%3A11)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A25784%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A25799%3A12) at http://localhost:7000/static/js/vendor_app.js:24416:12 at http://localhost:7000/static/js/vendor_app.js:26017:17 at ensure (http://localhost:7000/static/js/vendor_app.js:25941:38) at module (http://localhost:7000/static/js/vendor_app.js:26015:14) at http://localhost:7000/static/js/vendor_app.js:28217:22 at forEach (http://localhost:7000/static/js/vendor_app.js:24663:18) at loadModules (http://localhost:7000/static/js/vendor_app.js:28211:5) at createInjector (http://localhost:7000/static/js/vendor_app.js:28151:11) at doBootstrap (http://localhost:7000/static/js/vendor_app.js:25784:20) at bootstrap (http://localhost:7000/static/js/vendor_app.js:25799:12) http://errors.angularjs.org/1.2.32/$injector/modulerr?p0=ebookcoinApp&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'ebookcoinApp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.32%2F%24injector%2Fnomod%3Fp0%3DebookcoinApp%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A24416%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A26017%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A25941%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A26015%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A28217%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A24663%3A18)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A28211%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A28151%3A11)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A25784%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A7000%2Fstatic%2Fjs%2Fvendor_app.js%3A25799%3A12) at http://localhost:7000/static/js/vendor_app.js:24416:12 at http://localhost:7000/static/js/vendor_app.js:28245:15 at forEach (http://localhost:7000/static/js/vendor_app.js:24663:18) at loadModules (http://localhost:7000/static/js/vendor_app.js:28211:5) at createInjector (http://localhost:7000/static/js/vendor_app.js:28151:11) at doBootstrap (http://localhost:7000/static/js/vendor_app.js:25784:20) at bootstrap (http://localhost:7000/static/js/vendor_app.js:25799:12) at angularInit (http://localhost:7000/static/js/vendor_app.js:25708:5) at HTMLDocument.<anonymous> (http://localhost:7000/static/js/vendor_app.js:46530:5) at fire (http://localhost:7000/static/js/vendor_app.js:3871:31)
嗨,我买了nodejs开发区块链的书籍,,现在正在学习,,遇到问题,恳请指点:
app.js 374行有段代码
dbLite: function (cb) {
var dbLite = require('./helpers/dbLite.js');
dbLite.connect(config.db, cb);
},
总是如下报错,能帮忙解答下吗,我是在window8上执行的代码
internal/child_process.js:392
throw errnoException(err, 'kill');
^
Error: kill EINVAL
at _errnoException (util.js:1022:11)
at ChildProcess.kill (internal/child_process.js:392:13)
at setUpAndGo (E:\node_workspace\test-node\node_modules\dblite\build\dblite.node.js:162:19)
at Socket.onerror (E:\node_workspace\test-node\node_modules\dblite\build\dblite.node.js:135:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at onwriteError (_stream_writable.js:402:12)
at onwrite (_stream_writable.js:430:5)
at _destroy (internal/streams/destroy.js:39:7)
at Socket._destroy (net.js:561:3)
这里仅仅需要优化部分Api,配合chainclub.org的扩展开发。
Mac 10.12.5
Windows 10
log 2017-06-12 16:25:27 Ebookcoin started: 0.0.0.0:7000
fatal 2017-06-12 16:25:27 Domain master { message: 'Module version mismatch. Expected 48, got 47.',
stack: 'Error: Module version mismatch. Expected 48, got 47.\n at Error (native)\n
at Object.Module._extensions..node (module.js:597:18)\n
at Module.load (module.js:487:32)\n at tryModuleLoad (module.js:446:12)\n
at Function.Module._load (module.js:438:3)\n
at Module.require (module.js:497:17)\n at require (internal/module.js:20:19)\n
at bindings (/node_workspace/ebookcoin/node_modules/bindings/bindings.js:76:44)\n
at Object.<anonymous> (/node_workspace/ebookcoin/node_modules/ed25519/index.js:1:99)\n
at Module._compile (module.js:570:32)' }
正常 | 错误 |
---|---|
v5.10.0 | v6.8.0 |
v5.2.0 | v0.12.9 |
v8.1.1 | v8.0.0 |
v6.11.0 |
Ebookcoin oueikun$ node app.js
log 2017-11-23 14:18:37 Ebookcoin started: 0.0.0.0:7000
fatal 2017-11-23 14:18:37 Domain master { message: 'Cannot find module 'ed25519'',
stack: 'Error: Cannot find module 'ed25519'\n at Function.Module._resolveFilename (module.js:536:15)\n at Function.Module._load (module.js:466:25)\n at Module.require (module.js:579:17)\n at require (internal/module.js:11:18)\n at Object. (/Users/oueikun/Desktop/blockchain/ebookcoin/logic/transaction.js:2:7)\n at Module._compile (module.js:635:30)\n at Object.Module._extensions..js (module.js:646:10)\n at Module.load (module.js:554:32)\n at tryModuleLoad (module.js:497:12)\n at Function.Module._load (module.js:489:3)' }
您好,我购买了Node.js区块链开发。不过书中对一些属性,没有给出详细的解析,比如secondKeypair、secondSignature、u_secondSignature,他们都是干什么的,解决的问题是什么。困扰很久,一直没有找到合理的答案,在这打扰了
Error: Cannot find module '../../bower_components/file-saver/FileSaver.min.js' from '/home/wahwinner/workspace/ebookcoin/ebookcoin/public/static/js'
Warning: Error running grunt-browserify. Use --force to continue.
peer.js定义了{"get /": "getPeers"},但在getPeers方法中请求了req.body。。。
在linux安装的时候,node.js安装不成功,nvm可以安装
nvm install stable 安装稳定的node
运行环境:ubuntu-16.04 node v4.5.0
启动命令: node app.js
启动报错:message: 'Cannot read property 'ssl' of undefined',
stack: 'TypeError: Cannot read property 'ssl' of undefined\n at async.auto.network (/home/wangxh/awork/blockchain/ebookcoin/ebookcoin-master/app.js:221:20)
执行if (scope.config.ssl.enabled) 这行代码时出错
具体代码段:
network: ['config', function (cb, scope) {
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io')(server);
if (scope.config.ssl.enabled) {
var privateKey = fs.readFileSync(scope.config.ssl.options.key);
var certificate = fs.readFileSync(scope.config.ssl.options.cert);
var https = require('https').createServer({
key: privateKey,
cert: certificate
}, app);
var https_io = require('socket.io')(https);
}
cb(null, {
express: express,
app: app,
server: server,
io: io,
https: https,
https_io: https_io
});
}]
执行node app.js后提示这个
fatal Domin master { message :‘Cannot read property ssl of undefined’ }
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.