GithubHelp home page GithubHelp logo

ebookcoin / ebookcoin Goto Github PK

View Code? Open in Web Editor NEW
796.0 90.0 334.0 453 KB

Ebookcoin has been updated to DDN Blockchain,please get it from https://github.com/ddnlink/ddn

JavaScript 100.00%
nodejs ebookcoin ebook bitcoin cryptocurrency blockchain p2p

ebookcoin's Issues

关于亿书中的几个属性的疑问

您好,我购买了Node.js区块链开发。不过书中对一些属性,没有给出详细的解析,比如secondKeypair、secondSignature、u_secondSignature,他们都是干什么的,解决的问题是什么。困扰很久,一直没有找到合理的答案,在这打扰了

node.js 版本导致执行`node app.js`错误

系统

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)' }

node版本

正常 错误
v5.10.0 v6.8.0
v5.2.0 v0.12.9
v8.1.1 v8.0.0
v6.11.0

浏览器访问7000端口,控制台报错

您好,根据您的教程安装ebookcoin,浏览器访问7000端口报错,报错文件为vendor_app.js,
vendor_app.js.zip

终端显示:
2017-08-22 15 24 18
2017-08-22 15 24 38

系统环境: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)

按guide安装,运行node app.js报找不到模块

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)' }

前端显示空白

很奇怪,构建完成之后浏览器会提示错误:

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没有加载?
真的很懵

Wiki

在linux安装的时候,node.js安装不成功,nvm可以安装
nvm install stable 安装稳定的node

执行node app.js 报错

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)' }

node -v v0.12.15

cat /proc/version

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

npm intall 出错

hi,您的工程让我学到了很多,但是在执行编译的时候遇到了困难,

环境

  • linux Linux MiWiFi-R3-srv 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
  • nodejs v8.4.0
  • npm 5.3.0

error

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)

源码中dblite的问题,求解答

嗨,我买了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)

连接服务器的亿书链失败,listen EADDRNOTAVAIL

本地用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' }

public文件夹下面运行grunt release 报错

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.

安装完成,无法访问到wallet.html

server.js
router.get('/', function (req, res) { if (privated.loaded) { res.render('wallet.html', {layout: false}); } else { res.render('loading.html'); } });

访问http:ip:port/ 好像没有执行到这里

'TypeError: Cannot read property \'ssl\' of undefined

运行环境: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
            });
        }]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.