amazon-api-gateway-url-shortener icon indicating copy to clipboard operation
amazon-api-gateway-url-shortener copied to clipboard

AWS Amplify fails at build frontend stage

Open gregario opened this issue 2 years ago • 0 comments

See dump files below, could you help, please? I've followed the README instructions and everything completed correctly until this last step.

Starting phase: preBuild

Executing command: cd client

2022-04-13T17:25:37.978Z [INFO]: # Executing command: npm ci 2022-04-13T17:25:39.183Z [WARNING]: npm 2022-04-13T17:25:39.184Z [WARNING]: 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.

2022-04-13T17:25:39.215Z [WARNING]: 2022-04-13T17:25:39.215Z [WARNING]: npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-04-13T17_25_39_184Z-debug.log

2022-04-13T17:25:39.215Z [HELP]: Outputting the npm debug log 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/root/.nvm/versions/node/v14.19.0/bin/node', 1 verbose cli '/root/.nvm/versions/node/v14.19.0/bin/npm', 1 verbose cli 'ci' 1 verbose cli ] 2 info using [email protected] 3 info using [email protected] 4 verbose npm-session [removed] 5 info prepare initializing installer 6 verbose prepare starting workers 7 verbose prepare installation prefix: /codebuild/output/[removed]/src/amazon-api-gateway-url-shortener/client 8 verbose checkLock verifying package-lock data 9 verbose teardown shutting down workers. 10 info teardown Done in 0s 11 verbose stack Error: 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. 11 verbose stack at Installer.checkLock (/root/.nvm/versions/node/v14.19.0/lib/node_modules/npm/node_modules/libcipm/index.js:165:9) 11 verbose stack at /root/.nvm/versions/node/v14.19.0/lib/node_modules/npm/node_modules/libcipm/index.js:139:16 12 verbose cwd /codebuild/output/[removed]/src/amazon-api-gateway-url-shortener/client 13 verbose Linux 4.14.246-187.474.amzn2.x86_64 14 verbose argv "/root/.nvm/versions/node/v14.19.0/bin/node" "/root/.nvm/versions/node/v14.19.0/bin/npm" "ci" 15 verbose node v14.19.0 16 verbose npm v6.14.16 17 error 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. 18 verbose exit [ 1, true ]

2022-04-13T17:25:39.218Z [ERROR]: !!! Build failed 2022-04-13T17:25:39.218Z [ERROR]: !!! Non-Zero Exit Code detected 2022-04-13T17:25:39.218Z [INFO]: # Starting environment caching... 2022-04-13T17:25:39.219Z [INFO]: # Environment caching completed Terminating logging...`

gregario avatar Apr 13 '22 17:04 gregario