Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I want to install npm dependency from a sub-folder of a bitbucket repo

Preetam DS April 23, 2023

I wonder if it's possible to npm install a subdirectory of a bitbucket repo.

If the npm package is in the project root, it works like this: 

npm install ssh://<bitbucketname>/<bitbucketrepo>


My goal is to just install what's in a subdirectory, is that possible and how? 

2 answers

0 votes
Mia Paulin April 23, 2023

See last post

0 votes
Mia Paulin April 23, 2023

@Preetam DS  for a new directory, it would be


cd ~/<repository>

mkdir <directory-namr>

What you probably want is to make a child branch:

git branch checkout -b <branch-name>

Then, you have to merge/put it in the branch(main/master) that you are working in:

merge branch <branch-name>

Preetam DS April 24, 2023

i don't think it will work in the Bitbucket pipeline, how to solve this?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events