cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error from cf push

Former Member
1,857

Hi guys,

I'm trying to deploy to SCP Cloud Foundry with the command below:

cf push -f <app_name>/manifest

then got back the error

          **WARNING** yarn.lock is outdated
   -----> Running go build finalize
   /tmp/buildpackdownloads/ddcdba8d520546385414ac76bc084798 ~
   ~
          **WARNING** This app may not specify any way to start a node process
          See: https://docs.cloudfoundry.org/buildpacks/node/node-tips.html#start
          Contrast Security no credentials found. Will not write environment files.
Error staging application: Staging error: staging failed
FAILED

My manifest.yml file content is as below:

version: 1
applications:
  - name: backend-express
    env:
      NPM_CONFIG_PRODUCTION: false
      YARN_PRODUCTION: false
    memory: 512M
    instances: 1
    services:
      - myuaa
    buildpacks:
      - 'https://github.com/cloudfoundry/nodejs-buildpack'
    command: node app/backend-express/src

and package.json content is:

{
  "name": "backend-express",
  "version": "1.0.1",
  "description": "",
  "repository": "",
  "license": "UNLICENSED",
  "private": true,
  "dependencies": {
    "@sap/xsenv": "3.0.0",
    "@sap/xssec": "3.0.5",
    "cookie-parser": "^1.4.5",
    "cors": "^2.8.5",
    "dotenv-flow": "^3.1.0",
    "express": "^4.17.1",
    "passport": "^0.4.1"
  },
  "scripts": {
    "start": "node src"
  }
}

Can you please give any advice if any? Thank you.

Regards,

Kevin

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

I saw this too. I also don't know why. But anyway, it didn't break my app.