无法基于运行的业务网络生成Angular应用程序

时间:2017-02-17 12:47:23

标签: hyperledger-composer

当尝试按照说明(https://fabric-composer.github.io/tasks/genapp.html)生成基于正在运行的业务网络的Angular应用程序时,我使用defaultProfile获得No bower.json错误。它似乎生成一个node_modules目录,但它是空的,但是没有创建angular-app目录。我能够通过指向文档的第2步中概述的现有BNA文件来生成应用程序但不是理想的。想知道会发生什么事吗?

jdockter@ubuntu:~$ yo fabric-composer:angular
WARNING: No configurations found in configuration directory:/home/jdockter/config
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
Welcome to the Angular2 skeleton app generator
? Do you want to connect to a running Business Network? Yes
? What is the name of the application you wish to generate?: angular-app
? Description of the application: Skeleton Fabric Composer Angular2 project
? Author name: Jon Dockter
? Author email: jdockter@us.ibm.com
? What is the Business Network Identifier?: labor-network-model
? What is the Connection Profile to use? defaultProfile
? Enrollment id: WebAppAdmin
? Enrollment Secret: DJY27pEnl16d
Configuring: angular-app
About to connect to a running business network


I'm all done. Running npm install && bower install for you to install the required dependencies. If this fails, try running the command yourself.


npm WARN enoent ENOENT: no such file or directory, open '/home/jdockter/package.json'
npm WARN jdockter No description
npm WARN jdockter No repository field.
npm WARN jdockter No README data
npm WARN jdockter No license field.
bower                           ENOENT No bower.json present
Complete

1 个答案:

答案 0 :(得分:0)

我创建了此缺陷来跟踪此情况: https://github.com/fabric-composer/fabric-composer/issues/206

我们会在知道更多信息后立即更新。

感谢您的报告。