IBM Bluemix - 的NodeJS:无法解析清单中的相关性(IBM Bluemix - N

2019-09-26 05:53发布

我使用的IBM蓝色混合开发的OPS构建和部署。 我的应用程序是应用程序的NodeJS,我创建了使用快递的NodeJS框架,并添加所有必需的文件,如manifest.yml。

这是我以前固定的问题:1。我要补充.ymml自己的文件2.项目名称被占满了,我提供新的。 3.因为我已经嵌套的目录,它是在第二个子目录,所以构建步骤也失败了,我添加/路径/路径/然后它是成功的。

问题:4.上部署,我得到这个错误。

   -----> Downloaded app package (28K)
-----> Downloaded app buildpack cache (13M)
Cloning into '/tmp/buildpacks/nodejs-buildpack'...
Submodule 'compile-extensions' (https://github.com/cloudfoundry/compile-extensions.git) registered for path 'compile-extensions'
Cloning into 'compile-extensions'...
-------> Buildpack version 1.5.15
-----> Creating runtime environment
       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  4.2.x
       engines.npm (package.json):   unspecified (use default)
       Downloading and installing node 4.2.x...
DEPENDENCY MISSING IN MANIFEST:
Unfortunately, we are either unable to resolve the dependency into
a binary and version number or the requested version or version range is not supported.
Please replace the URL with a valid link or the requested version/range
with a supported version or version range.
-----> Build failed
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       https://help.heroku.com/
       Love,
       Heroku
Staging failed: Buildpack compilation step failed

FAILED
BuildpackCompileFailed

TIP: use 'cf logs myapplication --recent' for more information

Finished: FAILED

Stage has no runtime information

Answer 1:

有一个错误project.json文件。

它有过:

 },
  "repository": {},
  "engines": {
    "node": "4.2.x"
  }

在我的本地机器上,我跑4.4.x 。 所以我改变了它,现在的应用程序工作。



文章来源: IBM Bluemix - NodeJS: unable to resolve the dependency in the manifest