Forums

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

pipelines npm install fails - is bitbucket being blocked?

Stephan Butler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2018

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 Champion
November 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
AUG Leaders

Atlassian Community Events