Open GhaziAlNaymaT opened 4 years ago
@GhaziAlNaymaT This error means that you application is not detected by cloud foundry, I would assume you got this error while performing Ex 1, so now to check this error;
first I will need you to check your package.json file and make sure that its content matches the following:
{
"name": "get-started-node",
"main": "server.js",
"description": "An introduction to developing Node.js apps on the IBM Cloud platform",
"version": "0.1.1",
"private": false,
"engines": {
"node": "10.*"
},
"scripts": {
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "https://github.com/IBM-Cloud/get-started-node"
},
"dependencies": {
"@cloudant/cloudant": "^3.0.2",
"body-parser": "^1.17.x",
"cfenv": "^1.0.x",
"dotenv": "^4.0.0",
"express": "^4.15.x",
"mongodb": "^3.0.10"
},
"author": "IBM Corp",
"license": "Apache-2.0"
}
if you still have the issue so I will need from you to share the hierarchy of files that you have in the project path so in the terminal/CMD go to the same location where you have your application.
in case you are using Linux/macOS
run the following command ls -la
in case you are using Windows
run the following command dir
Then take a screenshot of the result and send it here.
Hi, I checked the package.json and everything is exactly the same to what you sent. Below is the hierarchy of the files:
Microsoft Windows [Version 10.0.18362.778] (c) 2019 Microsoft Corporation. All rights reserved.
C:\Program Files\IBM\Cloud\bin\get-started-node-master>dir Volume in drive C has no label. Volume Serial Number is 6215-134A
Directory of C:\Program Files\IBM\Cloud\bin\get-started-node-master
05/06/2020 04:25 PM
C:\Program Files\IBM\Cloud\bin\get-started-node-master>
@GhaziAlNaymaT The hierarchy looks fine also, I think maybe you have some issues with permissions. Make sure to open the CMD as an administrator and I would say it is better if you can move the project in a driver different than C driver.
I am getting this error " Staging app and tracing logs... Error staging application: An app was not successfully detected by any available buildpack
TIP: Use 'cf.exe buildpacks' to see a list of supported buildpacks. FAILED"
My manifest.yml
applications: