cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP App Router NodeJS Deployment Error

Cristian
Participant
0 Kudos

Hi Experts,

We have a CAP service which has been running for around a year with no issues. This CAP service has an app router whose package.json looks as follows:

{ "name": "app-router", "description": "Node.js based application router service", "engines": { "node": "^8.0.0 || ^10.0.0" }, "dependencies": { "@sap/approuter": "6.8.0" }, "scripts": { "start": "node node_modules/@sap/approuter/approuter.js" }}

Now we have done a change in the application and while trying to deploy we are getting an error. Looking into the looks it seems to be do to the node engine used by the app router.

#2.0#2021 12 20 13:14:19.545#Z#DEBUG#com.sap.cloud.lm.sl.xs2.8a14cc0e-6196-11ec-9e3c-eeee0a8c24f7.locking-service-app-router.stageAppTask#######org.cloudfoundry.multiapps.controller.persistence.services.ProcessLogger########flowable-async-job-executor-thread-34339###[PollStageAppStatusExecution] [locking-service-app-router] 494e07b0-00a0-4037-9505-bb4cad7547ba [Mon Dec 20 13:14:04 UTC 2021] **ERROR** Unable to install node: no match found for ^8.0.0 || ^10.0.0 in [12.22.6 12.22.7 14.18.0 14.18.1 16.10.0 16.11.1] (STDOUT, STG)#

Any idea about how we can fix this?

Regards and thanks in advance.

C.

0 Kudos

Hi Team,

I am also getting same error , I tried to update my node engine version in Package.json under App router , but still getting same error . Could you please help me to fix this issue.

"engines": { "node": "^12.0.0 || ^14.0.0" },
gregorw
Active Contributor
0 Kudos

Have you tried with node 14 only?

0 Kudos

Thanks gregor for the reply . Yes I tried but same error - "Unable to install node: no match found for ^8.0.0 || ^10.0.0 in [12.22.6 12.22.7 14.18.1 14.18.2 16.13.0 16.13.1] (STDOUT, STG)"

gregorw
Active Contributor
0 Kudos

Seems the package.json that is deployed contains ^8.0.0 || ^10.0.0

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
Active Contributor
0 Kudos

I would suggest that you subscribe to the wiki page Release Highlights for SAP Business Technology Platform. You should have learned that SAP BTP doesn't support Node.JS 8 or 10 anymore. You should always keep your engine version as suggested at https://nodejs.org/en/about/releases/:

"Production applications should only use Active LTS or Maintenance LTS releases."

Cristian
Participant
0 Kudos

Many thanks gregorw

Answers (0)