6/23/2023 0 Comments Npm install github repository![]() I can make clone this repository from git by command git clone. It reproduced on Ubuntu Linux, but same config is working on MacOS. I tried another way, I generate SSH key inside container and added public key to bitbucket, but I see the same error message. Npm ERR! A complete log of this run can be found in: You need specific a public key on bitbucket repo. ![]() Npm ERR! Please make sure you have the correct access rights 'my-repo': 'git+ssh:///USERNAME/MY-REPO/' npm install. Npm ERR! fatal: Could not read from remote repository. Npm ERR! command git ls-remote ERR! Permission denied (publickey). Especially interesting is the RUN -mounttypessh,idgithub npm install.Here we tell Docker that it is allowed to use the github key that we passed on docker build.This key is then available to the Docker builder as it connects to the local SSH agent, which sees in the /.ssh/config file that it must use this key to connect to the GitHub server. In my package.json I added next line "my-interfaces": "git+ssh://:MY_USER_NAME/my-interfaces.git#master",Īfter building container using docker-compose, I login inside container and runīut in the end I see next error npm ERR! code 128 RUN mkdir -p -m 0600 ~/.ssh & ssh-keyscan > ~/.ssh/known_hosts RUN echo "StrictHostKe圜hecking no" > /etc/ssh/ssh_config For that I am using next Dockerfile FROM node:15 Inside the project I am using private repository.
0 Comments
Leave a Reply. |