Tag Archives: npm install Error

[Solved] npm install Error: github requires permissions, Permission denied (publickey)

npm install reports an error indicating that github needs permission Permission denied (publickey)

1. Error message

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git –no-replace-objects ls-remote ssh://[email protected]/layouts/Admin.js.git
npm ERR! [email protected]: Permission denied (publickey).
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! A complete log of this run can be found in:
npm ERR! C:\Users\dell\AppData\Local\npm-cache_logs\2022-05-30T05_33_24_378Z-debug-0.log

screenshot:

1653889264816

2. Solutions

run the following command

git config --global http.sslverify "false"

then execute

npm install