0

I am trying to add a bitbucket url as module dependency.I already setup ssh key and its already working when using git clone but when adding a url dependency during npm install it still asking for username and password.

dependencies: { 
    test-module: git+ssh://[email protected]:username/repo.git#v1.0.0
}

2
  • Is that url formatted correctly? I know that ssh://[email protected]/user/repo.git works. I'm not sure how git+ssh:// is interpreted, but it seems to me like the :username part of it would be interpreted as a port number. Commented Dec 27, 2023 at 18:35
  • HI yes I followed format here. docs.npmjs.com/cli/v10/configuring-npm/package-json. Also added Identity in .ssh but npm still asking for username and password. Am i missing a config in npm? Thanks Commented Dec 28, 2023 at 2:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.