Hi,
I want to use bitbucket-pipeline for our Vue.Js app app to our AWS server. But it is always gives an error about 'npm: command not found'. I tried so many combination of commands and node images that used in pipeline but it does not help to fix our problem. I did not get it where is problem.
Here is our bitbucket-pipeline.yml
image: node:16
pipelines:
branches:
develop:
- step:
name: Build
script:
- npm install
- npx vue-cli-service build --mode production
caches:
- node
artifacts:
- dist/*
- dist/**/*
- dist/**/**
- step:
name: Deploy
script:
- scp -r ./dist ubuntu@$SERVER:/var/www/path/to/app
Here is screenshot of error:

Thanks.
----------------------------------------------
Edit:
Fixed issue when I remove custom path variable called as PATH from repo settings. It is causing confusion of pipeline.
https://jira.atlassian.com/browse/BCLOUD-20162
Thanks.