I'm running quasar build in my bitbucket pipeline but the output is: Error Unknown command "build"
Anybody know why this happens? I basically want to just push my code and let bitbucket pipeline take care of the rest.
image: node:10.15.3
pipelines:
branches:
master:
- step:
name: Building Quasar
caches:
- node
script:
- yarn global add @quasar/cli
- quasar build
- do some other stuff
artifacts:
- path/to/artifact
- step:
name: Deploying to S3
caches:
- node
script:
- cp $BITBUCKET_CLONE_DIR/path/to/artifact path/to/artifact
- pipe: atlassian/aws-s3-deploy:0.3.8
variables:
...
It's a common mistakes that occurred during getting packages with package manager. In default yarn package manager doesn't get dev dependencies if NODE_ENV set to production. You have 3 solutions:
from https://forum.quasar-framework.org/topic/5283/unknown-command-build-circleci/5
run: npm install && npm install --only=dev
In my case fixed executing like this:
npm install && npm install --only=dev
npm install @quasar/cli
npx quasar build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With