I'm unable to execute some commands however I have installed their packages but in different steps, the same commands are working fine if I'm installing their packages in the same step
the yml script below is throwing an error in the second step, as
<span>bash: curl: command not found</span>
if i moved curl installation to 2nd step it will work fine
image: ubuntu:latest
pipelines:
default:
- step:
name: Install Environment Dependencies
script:
- apt update && DEBIAN_FRONTEND=noninteractive apt install -y curl sudo wget
- step:
name: Install Nodejs
script:
- |
curl -sL https://deb.nodesource.com/setup_14.x | bash && \
apt-get -qqy install nodejs && \
exit 0 && \
npm cache clean && \
apt-get remove --purge -y npm && \
apt-get autoremove --purge -y