Npm Install From Bitbucket

 admin

Git repository hosted by Bitbucket. Atlassian Sourcetree is a free Git and Mercurial client for Windows. Atlassian Sourcetree is a free Git and Mercurial client for Mac.

Install Bitbucket Server as a service On Linux and Windows systems, the installer can install Bitbucket Server as a service (although not when upgrading an existing instance of Bitbucket Server). A service account named 'atlbitbucket' will be created. I'm not sure why moving all the npm install stuff into the bitbucket.pipelines.yml solved my issue building the project. I thought Docker would enable me to define my environment, e.g., install a version of node/npm and firebase. Npm install modules from bitbucket private repositories Posted in Uncategorized by sqllyw on You might have private repositories in bitbucket and you declare dependencies in your nodejs app’s package.json. How to install an npm package from GitHub directly? Ask Question. Up vote 629 down vote favorite. Bitbucket, Gitlab, and a number of other specialized formats. Works for BitBucket and GitLab too. Open the GitHub URL that matches your shell's current branch and working directory. Works for BitBucket and GitLab too. Npm install ghwd --global. Git checkout mybranch.

Viewed 215 times

I have a local bitbucket server git.mydomain.com I can access the repository from SourceTree and do clone I can see the repo is:
http://hadar.m@git.mydomain.com:7990/scm/st/my-project.git

I have another projects I want to add package 'my-project' as a dependency to it, so in the packages.json file I write

as I run npm install command I get error : ' fetch failed with status code 401' for this package . I've read I need to access via git+ssh and did so enabled it inside the Bitbucket admin . I've changed the packages.json to :

the port changed to 7999 from 7990 , still error is now :

Could not read from remote repository. Please make sure you have the correct access rights

What am I doing wrong / What is the correct way to do so ?

edit:
I've created an access key in the server , after it I add this access key to the repository with read access, label : 'hadar@mydomain.com' key:'[..access-key..]'
now I don't know how to construct the url to install the package.

Haddar Macdasi
Haddar MacdasiHaddar Macdasi
2,0644 gold badges29 silver badges51 bronze badges
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.

Browse other questions tagged gitbitbucketnpm-installbitbucket-server or ask your own question.

This repository has been archived by the owner. It is now read-only.

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up

Comments

commented Oct 17, 2013

Hi,
I have tried to search all over internet and haven't found any info.
I need to use private HG repository, just like it is done with git..

It is possible ?
like package.json

but instead to use bitbucket and HG ?

commented Oct 17, 2013

It is not possible.

On Thursday, October 17, 2013, Asp3ctus wrote:

Hi,
I have tried to search all over internet and haven't found any info.
I need to use private HG repository, just like it is done with git..

It is possible ?
like package.json

{
'name': 'Module',
'version': '3.0.3',
'readme': 'readme',
'dependencies': {
'agi': 'git://github.com/abroweb/node-agi.git'
}
}

but instead to use bitbucket and HG ?


Reply to this email directly or view it on GitHubhttps://github.com/isaacs/npm/issues/4007
.

commented Oct 17, 2013

any explanation ?

commented Oct 17, 2013

npm does not have built in mercurial support — you should be able to use the git URI from bitbucket, if that helps.

commented Oct 19, 2013

Well i understand that npm doesn't have built in mercurial support .. My real question and issue was .. about the ability to add this support .. which you answered 'It is not possible' ..

The git URI from bitbucket . it means i will have to use git for the project .. i knew that .. but for some reasons i would like to use HG..
If it is possible . and if you point out how to add this support i would be glad to code it and make pull request ..

commented Nov 18, 2013

unfortunately my team uses Mercurial too. we don't use BitBucket or have 'HG Web' access to the 3rd party repo, only SSH access. which means we can't use npm to manage our deps housed in this repo 👎

would a pull-request adding Mercurial support be any value to the npm community?

commented Jan 27, 2014

Yup, we could greatly benefit from having support for more source control types with regard to package URLs. Having the ability to pull packages using GIT is great but not everyone uses GIT to host their packages.

There is a workaround though (described here: http://stackoverflow.com/questions/18208860/npm-package-url-as-dependency-in-mercurialbitbucket) so you can use any repo as long as you package up your files as .tar.gz.

commented Jan 21, 2015

@luk Is it possible to reopen this issue as a feature request to add Mercurial support?

commented Apr 16, 2015

I would appreciate this support, though it doesn't seem like there are enough users who will benefit to warrant adding the functionality.

My use-case anyhoo is to add jsTimeZoneDetect as a dependency

Npm Github Repository

commented Apr 16, 2015

I'm a big fan of Mercurial, but yeah, dealing with git is more than enough work and overhead complexity for us as it is. I'm sorry, it's just not something that the project can commit to adding or maintaining.

commented Apr 28, 2015

+1 request for this if you ever decide to reconsider. It would be very helpful to my team.
Looks like this would mainly require mercurial-oriented versions of npm/lib/utils/git.js and npm/lib/cache/add-remote-git.js , and a small change to npm/lib/cache.js? Trying to feel out the waters here. If someone were to (hypothetically) contribute these, would you accept a PR?

From

commented Apr 28, 2015

Rpg maker vx free download. See the comment immediately above yours. :) The 'or maintaining' bit is key – supporting git is proving to be a large enough commitment as it is. I don't want to accept a contribution the team doesn't have the resources to support properly, and this falls in that class.

commented Apr 28, 2015

More than understandable

commented Apr 28, 2015

Got it, thanks, that's exactly what I was trying to gauge.

commented Apr 29, 2015

Does npm support hooks or plugins, such that the community could provide this another way?

commented Apr 29, 2015

Actually, I believe our solution will be to use git-remote-hg and the built-in Mercurial hooks to clone our hg repositories to git as they're updated (changegroup) on an internal server. This will effectively serve as our local npm registry. The biggest benefit of this is that the developers won't need anything custom on their end and can use their native npm install.

Just wanted to mention this as a possible solution for other hg fans out there.

Example internal package smg-log

Npm Install From Bitbucket

commented Jan 19, 2017

Forgive me for being naïve, but why is supporting Mercurial so much maintenance work? Wouldn't npm just use the external hg client to run hg clone and that's about it?

commented Jan 19, 2017

Npm Install From Private Bitbucket

Unfortunately searching git for bugs in the npm repo turns up many false positives, but by browsing a bit you'll see that supporting git is no easy task.

commented Sep 25, 2017

Npm Install From Zip

+1

Npm Install From Bitbucket Vs Github

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.