question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Host key verification failed

See original GitHub issue

Cannot install aws-amplify/cli. Other npm packages are intalling without any issues.

** Which Category is your question related to? ** installation

** Provide additional details e.g. code snippets ** When running npm install -g aws-amplify/cli I’m getting

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/aws-amplify/cli.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

full log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\sergej.popov\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'aws-amplify/cli' ]
2 info using npm@6.7.0
3 info using node@v10.13.0
4 verbose npm-session 0e19d40dcf6ea8c8
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for github:aws-amplify/cli Error while executing:
7 silly fetchPackageMetaData C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/aws-amplify/cli.git
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData Host key verification failed.
7 silly fetchPackageMetaData fatal: Could not read from remote repository.
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData Please make sure you have the correct access rights
7 silly fetchPackageMetaData and the repository exists.
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData exited with error code: 128
8 timing stage:rollbackFailedOptional Completed in 2ms
9 timing stage:runTopLevelLifecycles Completed in 4556ms
10 verbose stack Error: exited with error code: 128
10 verbose stack     at ChildProcess.<anonymous> (C:\Users\sergej.popov\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\util\finished.js:12:19)
10 verbose stack     at ChildProcess.emit (events.js:182:13)
10 verbose stack     at maybeClose (internal/child_process.js:962:16)
10 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
11 verbose cwd C:\dev\private\roots\web
12 verbose Windows_NT 10.0.17134
13 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\sergej.popov\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "aws-amplify/cli"
14 verbose node v10.13.0
15 verbose npm  v6.7.0
16 error Error while executing:
16 error C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/aws-amplify/cli.git
16 error
16 error Host key verification failed.
16 error fatal: Could not read from remote repository.
16 error
16 error Please make sure you have the correct access rights
16 error and the repository exists.
16 error
16 error exited with error code: 128
17 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
UnleashedMindcommented, Mar 15, 2019

seems like you forgot to put the @ in front of the aws-amplify/cli in your command. the correct command is 'npm install -g @aws-amplify/cli`.

0reactions
github-actions[bot]commented, May 27, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSH connection problem with "Host key verification failed ...
"Host key verification failed" means that the host key of the remote host was changed. SSH stores the host keys of the remote...
Read more >
How to fix the error “host key verification failed” - The Geek Diary
Method 1 – removing old key manually ... 1. On the source server, the old keys are stored in the file ~/.ssh/known_hosts. 2....
Read more >
How to fix 'Host key verification failed' SSH Error
This error occurs when the target server you are trying to SSH into has been rebuilt or had it's RSA key changed since...
Read more >
What Does “Host Key Verification Failed” Mean? - Linux Hint
The host key verification error occurs when the key of the remote server changes and client does not verify it from the stored...
Read more >
3 ways to fix Host key verification failed in ssh - howtouselinux
If you receive the error message “Host key verification failed”, it means that the key stored for the host you're trying to connect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found