我正在使用有关Blockchain-Ethereum(Full Stack Hello World Voting Ethereum Dapp Tutorial )的-great-教程。 我遵循了所有步骤,但是当我尝试使用 node 命令执行一些代码时,却显示了功能代码,而不是应有的执行。 具体来说,在:
grails.plugins.rendering.document.UnknownTemplateException: Could not find template for 'template_name'
at grails.plugins.rendering.document.XhtmlDocumentService.createTemplate(XhtmlDocumentService.groovy:102)
at grails.plugins.rendering.document.XhtmlDocumentService$_generateXhtml_closure1.doCall(XhtmlDocumentService.groovy:66)
at grails.plugins.rendering.document.RenderEnvironment.with(RenderEnvironment.groovy:70)
at grails.plugins.rendering.document.RenderEnvironment.with(RenderEnvironment.groovy:60)
at grails.plugins.rendering.document.XhtmlDocumentService.generateXhtml(XhtmlDocumentService.groovy:65)
at grails.plugins.rendering.document.XhtmlDocumentService.createDocument(XhtmlDocumentService.groovy:35)
at grails.plugins.rendering.RenderingService.render(RenderingService.groovy:36)
at grails.plugins.rendering.RenderingService.render(RenderingService.groovy:35)
我得到的结果是:
$ node
> Web3 = require('web3')
> web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
第二个命令也是如此。我已经在教程的评论部分提出了要求,但是任何建议都值得欢迎。 谢谢!