How do I install my private github repo as an NPM package?

So I have a private github repo. In the package.json for my meteor app, I have the following:

"dependencies": {
    "meteor-node-stubs": "^0.2.3",
    "top_secret": "git://github.com/jononomo/top-secret.git#v0.2.12"
  },

Last week I was able to install these dependencies just by running npm install --save but that was when top-secret was a public repo. Now that I have made it private, the install is failing. The error I get is:

npm ERR! fatal: remote error:
npm ERR!   Repository not found.

What should I do?

Apparently I should have used this syntax:

"dependencies": {
    "meteor-node-stubs": "^0.2.3",
    "top_secret": "git+ssh://git@github.com/jononomo/top-secret.git#v0.2.12"
  },
1 Like