Declare dependencies in your nodejs app package.json:
"dependencies": {
"modulename":"git+https://
[email protected]/lanakdevelopers/modulename.git",
"ejs": "1.0.0"
}
Then follow below steps
Turn on git cache, keep password in the cache for a certain period of time
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
Access your private repository once, type your bitbucket password when prompted
git ls-remote https://
[email protected]/lankadevelopers/modulename.git
Now you can install packages using npm install