npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

NPM install private repository

The code below works fine with Windows with the command mpm i.

  "dependencies": {
    "my-pack": "git+"

A credential form standard of windows is open, and the login and password is passed.

But on Linux an authetication error is returned.

npm install
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t
npm ERR!
npm ERR! remote: HTTP Basic: Access denied
npm ERR! fatal: Authentication failed for ''
npm ERR!
npm ERR! exited with error code: 128