Forums

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

How to update nodejs version on bitbucket pipeline?

Suren March 18, 2019

When trying to build an angular project, we're seeing this 

+ ng build --prodYou are running version v6.9.4 of Node.js, which is not supported by Angular CLI v6.The official Node.js version that is supported is 8.9 and greater.

 

How to update the version of NodeJS? We tried adding 

- apt-get update

- apt-get install nodejs -y

to our script but not working!

 

Screen Shot 2019-03-18 at 6.10.23 PM.png

1 answer

1 accepted

3 votes
Answer accepted
Suren March 19, 2019

This can be done by simply updating the node image version in the pipeline YML script.

# Sample build file
# @author Suren Konathala
image: node:8

Earlier we were using  

image: node:6.9.4

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events