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.
Hi @Emre Erinç
Try with this simple syntax and check whether you are able to run the workflow.
https://support.atlassian.com/bitbucket-cloud/docs/javascript-nodejs-with-bitbucket-pipelines
Thanks,
Pramodh
Hi,
I guess, these errors are depends to workflow. Even this pipeline did not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.