2016-06-27 10 views
1

私はIBM Blue Mixの開発者用ビルドとデプロイを使用しています。私のアプリケーションはnodejsアプリケーションで、nodejs expressフレームワークを使って作成し、manifest.ymlのような必要なファイルをすべて追加しました。IBM Bluemix - NodeJS:マニフェストの依存関係を解決できない

私が修正した問題: 1.私は.ymmlファイルを自分で追加する必要があります 2.プロジェクト名は既に占有されていました。私は新しいものを提供しました。 3.ネストされたディレクトリがあり、2番目のサブディレクトリにあるので、ビルドステップも失敗しました。/ 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 

答えて

1

project.jsonファイルにエラーがありました。

それは持っていた:私のローカルマシン上

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

を、私は4.4.xを実行していました。だから私はそれを変更し、今アプリケーションが動作しています。

関連する問題