Skip to Content
Mar 16, 2020 at 10:48 PM

Errors buiilding and deployng devDependencies "@sap/xsjs-test": "^3.0.2" Sap Cloud Platform

2208 Views Last edit Mar 17, 2020 at 01:25 AM 3 rev

I'm trying to deploy xsodata and xsjs service but I'm having this problem when I tried to deploy.

16:37:14 (Project Space) Workspace settings set successfully

16:37:27 (Executor) The "npm install" process started.

16:37:30 (Provision) Service provisioning for module: "/xsjs"

16:37:30 (Provision) No service instance will be created for the 'B2BPYMT_GATEWAY' resource of the 'org.cloudfoundry.existing-service' type.

16:37:30 (Provision) Service instance 'b2b-backend-test-hdidb-S0007929676D8IFVCzcaYVxy8VP' for resource 'b2b-backend-test-hdidb-S0007929676D8IFVCzcaYVxy8VP' already exists, no operation will be performed.

16:37:30 (Executor) Starting process: "cd /projects/b2b-backend-test/xsjs; export npm_config_loglevel=notice; npm install --no-save && ( mkdir -p 3261622339183730010; rm -f 3261622339183730010/; zip -rq 3261622339183730010/ .)"

16:37:32 (Executor) npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:

16:37:32 (Executor) npm WARN deprecated   npm i nyc

16:37:32 (Executor) npm WARN deprecated Visit for other alternatives.

16:37:36 (Executor) 

16:37:36 (Executor) > @sap/fibers@2.0.2-0 preinstall /projects/b2b-backend-test/xsjs/node_modules/@sap/xsjs-test/node_modules/@sap/fibers

16:37:36 (Executor) > node preinstall.js

16:37:36 (Executor) 

16:37:36 (Executor) 

16:37:36 (Executor) > @sap/hana-client@2.4.182 install /projects/b2b-backend-test/xsjs/node_modules/@sap/hdbext/node_modules/@sap/hana-client

16:37:36 (Executor) > node checkbuild.js

16:37:36 (Executor) 

16:37:36 (Executor) 

16:37:36 (Executor) > @sap/fibers@2.0.2-0 install /projects/b2b-backend-test/xsjs/node_modules/@sap/xsjs-test/node_modules/@sap/fibers

16:37:36 (Executor) > node build.js || nodejs build.js

16:37:36 (Executor) 

16:37:37 (Executor) gyp ERR! configure error 

16:37:37 (Executor) gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

16:37:37 (Executor) gyp ERR! stack     at PythonFinder.failNoPython (/usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)

16:37:37 (Executor) gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)

16:37:37 (Executor) gyp ERR! stack     at F (/usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/which/which.js:68:16)

16:37:37 (Executor) gyp ERR! stack     at E (/usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/which/which.js:80:29)

16:37:37 (Executor) gyp ERR! stack     at /usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/which/which.js:89:16

16:37:37 (Executor) gyp ERR! stack     at /usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/isexe/index.js:42:5

16:37:37 (Executor) gyp ERR! stack     at /usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/isexe/mode.js:8:5

16:37:37 (Executor) gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:154:21)

16:37:37 (Executor) gyp ERR! System Linux 4.19.86-coreos

16:37:37 (Executor) gyp ERR! command "/usr/local/lib/node10/node-v10.14.1-linux-x64/bin/node" "/usr/local/lib/node10/node-v10.14.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"

16:37:37 (Executor) gyp ERR! cwd /projects/b2b-backend-test/xsjs/node_modules/@sap/xsjs-test/node_modules/@sap/fibers

16:37:37 (Executor) gyp ERR! node -v v10.14.1

16:37:37 (Executor) gyp ERR! node-gyp -v v3.8.0

16:37:37 (Executor) gyp ERR! not ok 

16:37:37 (Executor) node-gyp exited with code: 1

16:37:37 (Executor) Please make sure you are using a supported platform and node version. If you

16:37:37 (Executor) would like to compile fibers on this machine please make sure you have setup your

16:37:37 (Executor) build environment--

16:37:37 (Executor) Windows + OS X instructions here:

16:37:37 (Executor) Ubuntu users please run: `sudo apt-get install g++ build-essential`

16:37:37 (Executor) Alpine users please run: `sudo apk add python make g++`

16:37:37 (Executor) sh: nodejs: command not found

16:37:37 (Executor) npm WARN xsjs@1.0.0 No repository field.

16:37:37 (Executor) npm WARN xsjs@1.0.0 No license field.

16:37:37 (Executor) 

16:37:37 (Executor) npm ERR! file sh

16:37:37 (Executor) npm ERR! code ELIFECYCLE

16:37:37 (Executor) npm ERR! errno ENOENT

16:37:37 (Executor) npm ERR! syscall spawn

16:37:37 (Executor) npm ERR! @sap/fibers@2.0.2-0 install: `node build.js || nodejs build.js`

16:37:37 (Executor) npm ERR! spawn ENOENT

16:37:37 (Executor) npm ERR! 

16:37:37 (Executor) npm ERR! Failed at the @sap/fibers@2.0.2-0 install script.

16:37:37 (Executor) npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

16:37:37 (Executor) 

16:37:37 (Executor) npm ERR! A complete log of this run can be found in:

16:37:37 (Executor) npm ERR!     /home/user/.npm/_logs/2020-03-16T22_37_38_768Z-debug.log

16:37:37 (Run preparation) Run preparation failed: The "npm install" process finished with code 1