How to solve npm install react-select failure with error : An unknown git error occurred, git@github.com :Permission denied (publickey)

Viewed 24

I am facing issues to install react-select for my react app, I tried below commands :

npm config set registry http://registry.npmjs.org 
npm install --save react-select 

I am getting below error:

An unknown git error occurred 
  git --no-replace-objects ls-remote ssh://git@github.com/eligrey/FileSaver.js.git
git@github.com :Permission denied (publickey)
fatal: Could not read from remote repository 

Please make sure you have the correct access rights and
the repository exists

The currently installed versions in my system are node (v16.17.0), npm (8.19.2), react (18.2.0)

How can I resolve this problem?

Thanks

1 Answers
Related