How to install a private package from github | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How to install a private package from github

So i am using the command "npm i https://github.com/username/package_name and i get the following error. code 128 npm ERR! command failed npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/username/package.git npm ERR! ssh -oStrictHostKeyChecking=accept-new: 1: ssh: not found npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights Can anyone please help me !

22nd Jun 2021, 11:06 PM
Abhay
Abhay - avatar
2 Réponses
+ 1
Seems like you do not have access to that private package.
1st Jul 2021, 1:40 PM
Veliside
Veliside - avatar
0
Veliside yes looks like it . But do you have any idea about what i can do now ? Package has nothing , so not much of my worry , was trying to see if could install it , also i remember i used ssh back few months for some authentication for it (that i have no idea about how and what i did !). Maybe that's why i don't access to it !
1st Jul 2021, 2:06 PM
Abhay
Abhay - avatar