vashishatashu vashishatashu - 1 year ago 145
Node.js Question

npm install private github repositories by dependency in package.json

I'm trying to install github private repository by npm that includes other private github repositories as dependency.

Have tried a lot of ways and posts but none is working. Here is what i'm doing :

npm install git+

in package.json is like :

"dependencies": {
"repository1name": "git+",
"repository2name": "git+"

What is the the right way to do it?

Answer Source

The following worked just fine in all scenarios i needed :

"dependencies": {
"GitRepo": "git+https://<token-from-github><user>/<GitRepo>.git"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download