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://[email protected]/eligrey/FileSaver.js.git
[email protected] :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
CodePudding user response:
Since https://github.com/eligrey/FileSaver.js is accessible, it is a public repository.
All you need to do is make sure ssh -Tv github.com
is working, meaning it gives you a welcome message ("Hi username! You've successfully authenticated...
")
Make sure your SSH key is created and registered to your GitHub profile, then try again your npm command.