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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Bitbucket, Angular CLI Command ng not working

It is a bit an older thread. But I have a very simular issue with the environment
bitbucket
Angular CLI - ng ....
Workspace
etc.
I have a complex pipeline to check the code, build the code and deploy the results ti Google Firebase environment. The crashy part of the pipeline looks like that


image: trion/ng-cli-karma:latest

pipelines:
branches:
master:

- step:

name: clean cache

script:

- pipe: atlassian/bitbucket-clear-cache:3.2.0

variables:

BITBUCKET_USERNAME: $BITBUCKET_USER_NAME

BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD

condition:

changesets:

includePaths:

- package.json

- angular.json

- bitbucket-pipeline.yml

- step:
name: install env

....

- step:

name: lint code

script:

- npm list | grep angular

- echo "$(ls -la)"

- npm run version

- npm run lint

- echo "$(ls -la)"

....
- step:

name: build app

script:

- npm list | grep angular

- echo "$(ls -la)"

- npm run version

- npm run build:prod

- echo "$(ls -la)"

artifacts:

- dist/**

- step:

name: deploy app

deployment: production

....

 

I cought that message, but it looks god with the access to command ng from the angular/cli package. It is globally installed be the pipeline.

 

+ npm run build:prod

 

> app-whatever build:prod

> ng build --prod --build-optimizer --progress=false

Error: This command is not available when running the Angular CLI outside a workspace.

 

Maybe someone solved that problem before. Thx in advance for some hints.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events