Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to install private NPM package in a different repository pipeline

Anders Ervik
April 20, 2026

I'm trying to use the new private NPM registry feature in Pipelines. 

The docs show how to create the package in the repository and publish the package from the repository's Pipelines using  .npmrc with $BITBUCKET_PACKAGES_USERNAME and $ENCODED_PACKAGES_TOKEN. This all works.

Next, how do I install that package from a Pipeline in another repository? If I setup a Pipeline with a .npmrc using that repository's $BITBUCKET_PACKAGES_USERNAME and $ENCODED_PACKAGES_TOKEN, it doesnt work:

npm error code E404
npm error 404 Not Found - GET https://npm.apkg.io/workspace/@scope%2fpackage - package @scope/package does not exist or you may not have sufficient permission.
npm error 404
npm error 404 '@scope/package@^1.0.10' is not in this registry.

Admittedly, this matches the documentation: the token is scoped to the current repository, not the repository where the package was published. But is there another way to install a package from a private Bitbucket Packages NPM registry in a Bitbucket Pipeline of another repository without configuring a personal token?

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events