0

next.js project working successfully on my local. When I tried to deploy to service (AWS amplify), here is a failed message

6211 verbose cwd /codebuild/output/src083979871/src/nftgenerator
                             6212 verbose Linux 4.14.246-187.474.amzn2.x86_64
                             6213 verbose argv "/root/.nvm/versions/node/v14.19.0/bin/node" "/root/.nvm/versions/node/v14.19.0/bin/npm" "ci"
                             6214 verbose node v14.19.0
                             6215 verbose npm  v6.14.16
                             6216 error Error while executing:
                             6216 error /usr/bin/git ls-remote -h -t ssh://git@github.com/ethereumjs/ethereumjs-abi.git
                             6216 error
                             6216 error Permission denied (publickey).
                             6216 error fatal: Could not read from remote repository.
                             6216 error
                             6216 error Please make sure you have the correct access rights
                             6216 error and the repository exists.
                             6216 error
                             6216 error exited with error code: 128
                             6217 verbose exit [ 1, true ]

2022-04-16T21:19:33.325Z [ERROR]: !!! Build failed 2022-04-16T21:19:33.325Z [ERROR]: !!! Non-Zero Exit Code detected

How can I solve it?

  • have you created keypair for github? By the way you can check this https://stackoverflow.com/questions/2643502/git-how-to-solve-permission-denied-publickey-error-when-using-git – Riz Apr 16 '22 at 23:37

0 Answers0