0

我是新手,并尝试部署此演示。我收到以下错误:

Downloading artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
FAILED
Error readingmanifest file:
yaml: line 3: mapping values are not allowed in this context
Finished: FAILED
Stage has no runtime information

Initial manifest.yml:
declared-services:
  visual-recognition-free
    label: watson_vision_combined
    plan: free
applications:
- services:
  - visual-recognition-free
  name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M

由于错误我改变了它:

declared-services:
  visual-recognition-free:
    label: watson_vision_combined
    plan: free
applications:
- name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M
services:
  - visual-recognition-free

单击“从工作区部署应用程序”。

Deploy failed: An unknown error occurred.
4

1 回答 1

2

该问题与manifest.yml语法有关。目前,该manifest.yml文件定义如下:

    ---
declared-services:
  visual-recognition-free
    label: watson_vision_combined
    plan: free
applications:
- services:
  - visual-recognition-free
  name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M

但是,manifest.yml应该如下:

    ---
declared-services:
  visual-recognition-free:
    label: watson_vision_combined
    plan: free
applications:
- services:
  - visual-recognition-free
  name: visual-recognition-demo
  command: npm start
  path: .
  memory: 512M

在声明的服务名称“visual-recognition-free”的末尾应该有一个“:”

我创建了一个 Github 问题来更新 manifest.yml 文件:

https://github.com/watson-developer-cloud/visual-recognition-nodejs/issues/193

在此期间,您可以在 Jazz Hub 上对您的项目进行更改。

于 2016-07-13T22:07:35.187 回答