I have a private gitlab repository with deploy token set up. My first though was that private repository can not be reached without that token, however there is no issues reaching and installing code from private repository using when dependency added to package.json
{
"name": "private-package",
"dependencies": {
"my.private.package": "git+https://gitlab.com/user/private-package.git"
},
}
During npm i code is pulled from private repository and installed into project. Is that expected behavior?
Copyright Notice:Content Author:「Andyally」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73606355/npm-install-from-private-gitlab-repository