【问题标题】:IBM Bluemix - NodeJS: unable to resolve the dependency in the manifestIBM Bluemix - NodeJS:无法解析清单中的依赖关系
【发布时间】:2016-06-28 05:34:33
【问题描述】:

我正在使用 IBM Blue mix dev ops 构建和部署。我的应用程序是 nodejs 应用程序,我使用 nodejs express 框架创建并添加了所有必需的文件,例如 manifest.yml。

我之前修复的问题: 1.我必须自己添加.ymml文件 2.项目名称已经被占用,我提供了新的。 3. 因为我有嵌套目录并且它在第二个子目录中,所以构建步骤也失败了,我添加 /path/path/ 然后它是成功的。

问题: 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

【问题讨论】:

    标签: node.js npm ibm-cloud manifest


    【解决方案1】:

    project.json 文件中有错误。

    它有:

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

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

    【讨论】:

      猜你喜欢
      • 2018-12-15
      • 2011-12-03
      • 2014-05-06
      • 2022-01-17
      • 2020-08-16
      • 2019-12-19
      • 2018-11-21
      • 2020-03-12
      • 2020-07-03
      相关资源
      最近更新 更多