Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,223
Community Members
 
Community Events
165
Community Groups

pipelines npm install fails - is bitbucket being blocked?

Since last night my automated (previously working) npm builds started failing.  

npm install:

 

...
...
npm ERR! <h2 data-translate="what_happened">What happened?</h2>
npm ERR! <p>The owner of this website (packages.npmjs.org) has banned you temporarily from accessing this website.</p>
npm ERR! </div>
...
...

I created a minimalistic repository to reproduce the issue at:

https://bitbucket.org/truevolve/npmtesting

  • This used to work
  • Works locally outside pipelines environment
  • How can I prevent this from happening in the future?

Any ideas on how to resolve this will be greatly appreciated.

Other people are having this problem as well:

https://github.com/npm/npm/issues/20802

 

1 answer

0 votes
Hakeem Olasupo Community Leader Nov 19, 2021

All I had to do is to navigate to the root folder with - cd ./frontend/src/deguvino-portal, do the installation and build and then return back. Complete script:,Any suggestions on how can I fix it? P.S. I'm using npm run build and not ng build because my sources are not in the root folder, but under frontend/src/deguvino-portal/ directory, and I did found a way to specify a directory for ng build., Don't be that account: buying and selling reputation and bounties

 

All I had to do is to navigate to the root folder with - cd ./frontend/src/deguvino-portal, do the installation and build and then return back. Complete script:

 

 

 -step:

    name: build frontend

 caches:

    -node

 image: node: 14.5 .0

 script:

    -cd. / frontend / src / deguvino - portal -

    npm install -

    npm run build - prod -

    apt - get update -

    apt - get install zip - y -

    cd. / dist / deguvino - portal -

    zip - r PublishOutputUI.zip. -

    pipe: microsoft / azure - web - apps - deploy: 1.0 .3

 variables:

    AZURE_APP_ID: $AZURE_APP_ID

 AZURE_PASSWORD: $AZURE_PASSWORD

 AZURE_TENANT_ID: $AZURE_TENANT_ID

 AZURE_RESOURCE_GROUP: '****'

 AZURE_APP_NAME: '*****'

 ZIP_FILE: 'PublishOutputUI.zip'

 artifacts:

    -PublishOutputUI.zip

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,265 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you