cipm can only install packages with an existing package-lock.json
Is the package-lock.json file included in your repo?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i get this error!
Build Error: Non-Zero Exit Your build job failed because it returned a non-zero exit code. See the logs for details. Error code: BuildJobExitNonZero
that's error log
[2021-05-03T13:11:12.139662417Z] ---> Resolving Node version
[2021-05-03T13:11:17.277713419Z] ---> Downloading and extracting Node v12.22.1
[2021-05-03T13:11:34.614585934Z] ---> Parsing package.json
[2021-05-03T13:11:36.288262471Z] ---> No file to start server
[2021-05-03T13:11:36.288306586Z] ---> either use 'docker run' to start container or add index.js or server.js
[2021-05-03T13:11:36.726519449Z] Using npm v6.14.12. To configure a different version of npm, set the engines.npm property in package.json.
[2021-05-03T13:11:36.726548086Z] See https://do.co/apps-buildpack-node for further instructions.
[2021-05-03T13:11:36.727689367Z] Installing node_modules using npm (from package-lock.json)
[2021-05-03T13:11:38.044105992Z] npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.
[2021-05-03T13:11:38.047432362Z]
[2021-05-03T13:11:38.047787208Z] npm ERR! A complete log of this run can be found in:
[2021-05-03T13:11:38.048530661Z] npm ERR! /home/apps/.npm/_logs/2021-05-03T13_11_38_044Z-debug.log
[2021-05-03T13:11:38.055446856Z]
[2021-05-03T13:11:38.056527179Z] unable to invoke layer creator
[2021-05-03T13:11:38.056552880Z] installing node_modules: exit status 1
[2021-05-03T13:11:38.059147572Z] ERROR: failed to build: exit status 1
[2021-05-03T13:11:40.166293129Z] /.app_platform/util.sh: line 154: printf: write error: Is a directory
[2021-05-03T13:11:40.177429628Z] cat: /.app_platform/.tmp/tmp.x4qjEzKlx0: Is a directory
[2021-05-03T13:11:40.339542689Z]
[2021-05-03T13:11:40.339639931Z] For documentation on the buildpacks used to build your app, please see:
[2021-05-03T13:11:40.339756165Z] Node.js: https://do.co/apps-buildpack-node
[2021-05-03T13:11:40.340369861Z] PHP: https://do.co/apps-buildpack-php
[2021-05-03T13:11:40.342592585Z]
[2021-05-03T13:11:40.343132774Z] ! Build failed (145)
cipm can only install packages with an existing package-lock.json
Is the package-lock.json file included in your repo?
Please or to participate in this conversation.