我按照以下链接中的说明进行操作:https://hyperledger.github.io/composer/unstable/applications/genapp.html并且能够基于我已部署的香蕉文件(carauction-network.bna)生成角度应用程序。
但是,当我尝试使用生成的角度应用程序添加资产时,它没有响应,并且作曲家休息服务器已停止。
请从npm-debug.log文件中查看以下错误详细信息。
10 verbose lifecycle [email protected]~app: CWD: C:\Users\IBM_ADMIN\Documents\GitHub\angular-app
11 silly lifecycle [email protected]~app: Args: [ '/d /s /c',
11 silly lifecycle 'composer-rest-server -n carauction-network -p testProfile -i WebAppAdmin -s DJY27pEnl16d -N always -P 3000' ]
12 silly lifecycle [email protected]~app: Returned: code: 3221225477 signal: null
13 info lifecycle [email protected]~app: Failed to exec app script
14 verbose stack Error: [email protected] app: `composer-rest-server -n carauction-network -p testProfile -i WebAppAdmin -s DJY27pEnl16d -N always -P 3000`
14 verbose stack Exit status 3221225477
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd C:\Users\IBM_ADMIN\Documents\GitHub\angular-app
17 error Windows_NT 6.1.7601
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "app"
19 error node v6.10.0
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error [email protected] app: `composer-rest-server -n carauction-network -p testProfile -i WebAppAdmin -s DJY27pEnl16d -N always -P 3000`
22 error Exit status 3221225477
23 error Failed at the [email protected] app script 'composer-rest-server -n carauction-network -p testProfile -i WebAppAdmin -s DJY27pEnl16d -N always -P 3000'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular-app package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error composer-rest-server -n carauction-network -p testProfile -i WebAppAdmin -s DJY27pEnl16d -N always -P 3000
23 error You can get information on how to open an issue for this project with:
23 error npm bugs angular-app
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls angular-app
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
看起来您在Windows上运行 - 目前这不是受支持的平台。