Ошибка запуска углового сервера для композитора hyperledger - PullRequest
0 голосов
/ 17 октября 2018

Я пытаюсь запустить угловой сервер для моего кода в hyperledger composer.Бэкэнд на REST работает отлично.

REST-сервер включен в отдельном окне терминала, и я открыл новый для запуска Angular Integration, вызвав yeoman.

Проблема, кажется, прибывает в npm.Я не могу понять, как решить это.версия узла - 8.11.2, а версия npm - 6.1.0.

? 'Allo himani! What would you like to do? Hyperledger Composer ♥ Update Availab
le!

Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo hyperledger-composer

Welcome to the Hyperledger Composer project generator
? Please select the type of project: Angular
You can run this generator using: 'yo hyperledger-composer:angular'
Welcome to the Hyperledger Composer Angular project generator
? Do you want to connect to a running Business Network? Yes
? Project name: test-bank
? Description: Hyperledger Composer Angular project
? Author name: himani
? Author email: himanimukne
? License: Apache-2.0
? Name of the Business Network card: admin@test-bank
? Do you want to generate a new REST API or connect to an existing REST API?  Co
nnect to an existing REST API
? REST server address: http://localhost
? REST server port: 3000
? Should namespaces be used in the generated REST API? Namespaces are used
Created application!
Completed generation process
   create app.js
   create Dockerfile
   create e2e/app.e2e-spec.ts
   create e2e/app.po.ts
   create e2e/tsconfig.e2e.json
   create e2e/tsconfig.json
   create karma.conf.js
   create manifest.yml
   create package.json
   create protractor.conf.js
   create proxy.conf.js
   create README.md
   create src/app/app-routing.module.ts
   create src/app/app.component.css
   create src/app/app.component.html
   create src/app/app.component.spec.ts
   create src/app/app.component.ts
   create src/app/app.module.ts
   create src/app/asset/images/delete_noun_cc.svg
   create src/app/asset/images/edit_noun_cc.svg
   create src/app/asset/images/failed_noun_cc.svg
   create src/app/asset/images/success_noun_cc.svg
   create src/app/data.service.ts
   create src/app/home/home.component.css
   create src/app/home/home.component.html
   create src/app/home/home.component.ts
   create src/environments/environment.prod.ts
   create src/environments/environment.ts
   create src/favicon.ico
   create src/index.html
   create src/main.ts
   create src/polyfills.ts
   create src/styles.css
   create src/test.ts
   create src/tsconfig.app.json
   create src/tsconfig.json
   create src/tsconfig.spec.json
   create tsconfig.json
   create tslint.json
   create .angular-cli.json
   create .editorconfig
   create .gitignore
   create .dockerignore
   create .cfignore
   create .npmignore
   create src/app/Account/Account.component.ts
   create src/app/Account/Account.service.ts
   create src/app/Account/Account.component.spec.ts
   create src/app/Account/Account.component.html
   create src/app/Account/Account.component.css
   create src/app/Customer/Customer.component.ts
   create src/app/Customer/Customer.service.ts
   create src/app/Customer/Customer.component.spec.ts
   create src/app/Customer/Customer.component.html
   create src/app/Customer/Customer.component.css
   create src/app/AccountTransfer/AccountTransfer.component.ts
   create src/app/AccountTransfer/AccountTransfer.service.ts
   create src/app/AccountTransfer/AccountTransfer.component.spec.ts
   create src/app/AccountTransfer/AccountTransfer.component.html
   create src/app/AccountTransfer/AccountTransfer.component.css


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



> node-sass@4.9.4 install /home/himani/test-bank/test-bank/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.4/linux-x64-57_binding.node
Download complete  ] - :
Binary saved to /home/himani/test-bank/test-bank/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/himani/.npm/node-sass/4.9.4/linux-x64-57_binding.node

> node-sass@4.9.4 postinstall /home/himani/test-bank/test-bank/node_modules/node-sass
> node scripts/build.js

Binary found at /home/himani/test-bank/test-bank/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1156 packages from 1136 contributors and audited 9735 packages in 116.392s
found 23 vulnerabilities (11 low, 5 moderate, 7 high)
  run `npm audit fix` to fix them, or `npm audit` for details

     _-----_     ╭───────────────────────╮
    |       |    │      Bye from us!     │
    |--(o)--|    │       Chat soon.      │
   `---------´   │      Yeoman team      │
    ( _´U`_ )    │    http://yeoman.io   │
    /___A___\   /╰───────────────────────╯
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

himani@himani-HP-Notebook:~/test-bank$ npm audit fix
npm ERR! code EAUDITNOLOCK
npm ERR! audit Neither npm-shrinkwrap.json nor package-lock.json found: Cannot audit a project without a lockfile
npm ERR! audit Try creating one first with: npm i --package-lock-only

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/himani/.npm/_logs/2018-10-17T18_32_40_180Z-debug.log
himani@himani-HP-Notebook:~/test-bank$ npm start
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/himani/.npm/_logs/2018-10-17T18_33_10_416Z-debug.log
...