All Collections
Troubleshooting Front-Commerce
Solve the "fatal: could not read from remote repository" error during npm install
Solve the "fatal: could not read from remote repository" error during npm install

You cannot install a Front-Commerce project because you have a Git related permissions error. Here are some steps you can take.

Pierre avatar
Written by Pierre
Updated over a week ago

Here are some steps that one can follow to troubleshoot an npm install problem due to incorrect SSH authorization when cloning a private dependency (here Front-Commerce) using git:

  • Ensure you have added your SSH key in your Gitlab account

  • Run the command ssh -v git@gitlab.blackswift.cloud (or -vvv) to see if there are any connectivity issues or errors.

  • Check to make sure that the correct SSH key is being used for the private repository. This key should be added to the ssh-agent, which is responsible for managing SSH keys.

  • To check if the correct SSH key is being used, run the command ssh-add -l. This will list all of the keys that are currently managed by the ssh-agent.

  • If the correct SSH key is not being used, it can be added to the ssh-agent using the command ssh-add /path/to/private_key.

  • If the issue is still not resolved, it is possible that there is a problem with the ssh-agent itself. To fix this, try running the command eval "$(ssh-agent -s)" to start a new ssh-agent and then add the correct SSH key using the ssh-add command from the previous step.

  • If the problem persists after trying these steps, it may be necessary to check the ssh configuration files (located in the ~/.ssh directory) for any issues or misconfigurations.

If the problem persists, please contact us!

Additional resources

Did this answer your question?