When trying to build an angular project, we're seeing this
<span><em>+ ng build --prod</em></span>You 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
<span>- </span><span>apt-get update</span>
<span>- </span><span>apt-get install nodejs -y</span>
<span>to our script but not working!</span>
