Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

npm: command not found

Nathan Mulugeta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2021

 

image: node:latest

definitions:
  steps:
    - step: &deployWeb
        name: deploy web
        script: &deployWebScript
          - npm install
          - npm run ng build -- --configuration=production

pipelines:  
custom:    
deploy-to-QA:      
step:          
<<*deployWeb          
nameDeploy to QA          
deploymenttest

 here is my bitbucket-pipelines.yml for an angular application and I'm getting a build error on npm install with the following error

/opt/atlassian/pipelines/agent/tmp/shellScript16212036659655199428.sh: line 4: npm: not found

1 answer

1 accepted

0 votes
Answer accepted
Nathan Mulugeta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2021

Found the issue, was using PATH as one of my environment variables.

It would be awesome if there is a warning when using PATH as a pipeline environment variable 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events