I am trying to execute the following command so that I can build my Angular application within the pipeline:
- npm install -g @angular/cli
But this throws an error:
+ npm install -g @angular/cli npm
ERR! code EUNSUPPORTEDPROTOCOL npm
ERR! Unsupported URL Type "npm:": npm:string-width@^4.2.0 npm
ERR! A complete log of this run can be found in: npm
ERR! /root/.npm/_logs/2024-09-25T19_58_43_985Z-debug.log npm
ERR! code EUNSUPPORTEDPROTOCOL npm
ERR! Unsupported URL Type "npm:": npm:string-width@^4.2.0 npm
ERR! A complete log of this run can be found in: npm
ERR! /root/.npm/_logs/2024-09-25T19_58_43_985Z-debug.log
Here is the yaml:
(The indentation got lost on the paste.)
- step:
name: Web Admin Portal Deployment
caches:
- node
script:
- cd Admin
- npm cache clean --force
- npm install -g
- ng build --configuration staging
- cd dist/lightning-admin
- pipe: atlassian/aws-s3-deploy:1.6.1
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
S3_BUCKET: 's3-web-stg-0'
LOCAL_PATH: '/dist/lightning-admin/'