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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

npm install not working when I use deployment tag Edited


When I use the deployment tag, in my yml file.

The npm install not works.

name: Development Build and Deployment
deployment: staging
#trigger: manual
npm install
npm install -g @angular/cli@7.3.8
ng build
scp -r dist/ $SITES_USER@$SITES_IP:$PATH

 The code above, not works, when the pipeline run, throws the error: bash: npm: command not found.

When I take off the deployment, like that:

- step:
name: Development Build and Deployment
- node
#trigger: manual
- npm install
      - npm install -g @angular/cli@7.3.8
- ng build
- scp -r dist/ $SITES_USER@$SITES_IP:$PATH

The code above, works. 

How to make the pipeline with deployment works?

1 answer

1 accepted

0 votes
Answer accepted

Hi @gabrielbusarello,

I've tried to reproduce this scenario but I didn't get any error when the tag is there.
I'm afraid there is an extra detail we are missing that could be causing this behavior.

Do you have any special docker image in your pipeline configuration?

Hi @Daniel Santos,
The problem has solved.
In pipeline exists a environment variable called PATH, and that variable, is of the linux system, because of that, the problem occurs.


Thanks for reply!

Like Daniel Santos likes this

Thank you for sharing.
I'm glad to know you found out what was the issue.

Have a good one!

Like gabrielbusarello likes this

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,920 views 0 7
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